org.restlet.client.engine.util
Class StringUtils

java.lang.Object
  extended by org.restlet.client.engine.util.StringUtils

public class StringUtils
extends java.lang.Object

String manipulation utilities.

Author:
Jerome Louvel

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
 

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-2011 Noelios Technologies.