com.noelios.restlet.util
Class StringUtils

java.lang.Object
  extended by com.noelios.restlet.util.StringUtils

public class StringUtils
extends java.lang.Object

String manipulation utilities.

Author:
Jerome Louvel

Constructor Summary
StringUtils()
           
 
Method Summary
static java.lang.String strip(java.lang.String source, char delimiter)
          Strips a delimiter character from both ends of the source string.
static java.lang.String strip(java.lang.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
 

Constructor Detail

StringUtils

public StringUtils()
Method Detail

strip

public static java.lang.String strip(java.lang.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 java.lang.String strip(java.lang.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-2008 Noelios Technologies.