|
JML | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jml.util.StringUtils
public class StringUtils
Some utils for String.
Constructor Summary | |
---|---|
StringUtils()
|
Method Summary | |
---|---|
static String |
debug(ByteBuffer buffer)
|
static String |
decodeBase64(byte[] data)
Decodes a base64 aray of bytes. |
static String |
decodeBase64(String data)
Decodes a base64 String. |
static String |
encodeBase64(byte[] data)
Encodes a byte array into a base64 String. |
static String |
encodeBase64(String data)
Encodes a String as a base64 String. |
static String |
ltrim(String s)
|
static String |
rtrim(String s)
|
static String |
urlDecode(String text)
|
static String |
urlEncode(String s)
|
static String |
xmlEscaping(String text)
|
static String |
xmlUnescaping(String text)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringUtils()
Method Detail |
---|
public static String urlEncode(String s)
public static String urlDecode(String text)
public static String ltrim(String s)
public static String rtrim(String s)
public static String xmlEscaping(String text)
public static String xmlUnescaping(String text)
public static String debug(ByteBuffer buffer)
public static String encodeBase64(String data)
data
- a String to encode.
public static String encodeBase64(byte[] data)
data
- a byte array to encode.
public static String decodeBase64(String data)
data
- a base64 encoded String to decode.
public static String decodeBase64(byte[] data)
data
- a base64 encode byte array to decode.
|
JML | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |