com.noelios.restlet.util
Class StringUtils
java.lang.Object
com.noelios.restlet.util.StringUtils
public class StringUtils
- extends Object
String manipulation utilities.
- Author:
- Jerome Louvel (contact@noelios.com)
Method Summary |
static String |
strip(String source,
char delimiter)
Strips a delimiter character from both ends of the source string. |
static String |
strip(String source,
char delimiter,
boolean start,
boolean end)
Strips a delimiter character from a source string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringUtils
public StringUtils()
strip
public static String strip(String source,
char delimiter)
- Strips a delimiter character from both ends of the source string.
- Parameters:
source
- The source string to strip.delimiter
- The character to remove.
- Returns:
- The stripped string.
strip
public static String strip(String source,
char delimiter,
boolean start,
boolean end)
- Strips a delimiter character from a source string.
- Parameters:
source
- The source string to strip.delimiter
- The character to remove.start
- Indicates if start of source should be stripped.end
- Indicates if end of source should be stripped.
- Returns:
- The stripped source string.
Copyright © 2005-2007 Noelios Technologies.