|
Restlet Framework 2.2.1 Android |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.engine.util.StringUtils
public class StringUtils
String manipulation utilities.
Method Summary | |
---|---|
static byte[] |
getAsciiBytes(java.lang.String string)
Encodes the given String into a sequence of bytes using the Ascii character set. |
static byte[] |
getLatin1Bytes(java.lang.String string)
Encodes the given String into a sequence of bytes using the Latin1 character set. |
static java.lang.String |
htmlEscape(java.lang.String str)
Returns the given String according to the HTML 4.0 encoding
rules. |
static java.lang.String |
htmlUnescape(java.lang.String str)
Returns the given String decoded according to the HTML 4.0
decoding rules. |
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 |
---|
public static byte[] getAsciiBytes(java.lang.String string)
string
- The string to encode.
public static byte[] getLatin1Bytes(java.lang.String string)
string
- The string to encode.
public static java.lang.String htmlEscape(java.lang.String str)
String
according to the HTML 4.0 encoding
rules.
str
- The String
to encode.
String
according to the HTML 4.0 encoding
rules.public static java.lang.String htmlUnescape(java.lang.String str)
String
decoded according to the HTML 4.0
decoding rules.
str
- The String
to decode.
String
decoded according to the HTML 4.0
decoding rules.public static java.lang.String strip(java.lang.String source, char delimiter)
source
- The source string to strip.delimiter
- The character to remove.
public static java.lang.String strip(java.lang.String source, char delimiter, boolean start, boolean end)
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.
|
Restlet Framework 2.2.1 Android |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |