org.tuckey.web.filters.urlrewrite.utils
Class StringUtils

java.lang.Object
  extended by org.tuckey.web.filters.urlrewrite.utils.StringUtils

public class StringUtils
extends Object

In the style of commons-lang StringUtils, but a bit smaller!.

Version:
$Revision: 1 $ $Date: 2006-08-01 21:40:28 +1200 (Tue, 01 Aug 2006) $
Author:
Paul Tuckey

Constructor Summary
StringUtils()
           
 
Method Summary
static boolean isBlank(String str)
           
static String nl2br(String note)
           
static String notNull(String str)
           
static boolean startsWithIgnoreCase(String str, String prefix)
          Test if the given String starts with the specified prefix, ignoring upper/lower case.
static String trim(String str)
           
static String trimToNull(String str)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringUtils

public StringUtils()
Method Detail

trim

public static String trim(String str)

trimToNull

public static String trimToNull(String str)

isBlank

public static boolean isBlank(String str)

notNull

public static String notNull(String str)

nl2br

public static String nl2br(String note)

startsWithIgnoreCase

public static boolean startsWithIgnoreCase(String str,
                                           String prefix)
Test if the given String starts with the specified prefix, ignoring upper/lower case.

Parameters:
str - the String to check
prefix - the prefix to look for
See Also:
String.startsWith(java.lang.String, int)


Copyright © 2001-2012 Paul Tuckey. All Rights Reserved.