Example usage for Java org.apache.commons.codec.binary StringUtils fields, constructors, methods, implement or subclass
The text is from its open source code.
byte[] | getBytesIso8859_1(final String string) Encodes the given string into a sequence of bytes using the ISO-8859-1 charset, storing the result into a new byte array. |
byte[] | getBytesUnchecked(final String string, final String charsetName) Encodes the given string into a sequence of bytes using the named charset, storing the result into a new byte array. |
byte[] | getBytesUsAscii(final String string) Encodes the given string into a sequence of bytes using the US-ASCII charset, storing the result into a new byte array. |
byte[] | getBytesUtf16(final String string) Encodes the given string into a sequence of bytes using the UTF-16 charset, storing the result into a new byte array. |
byte[] | getBytesUtf16Be(final String string) Encodes the given string into a sequence of bytes using the UTF-16BE charset, storing the result into a new byte array. |
byte[] | getBytesUtf16Le(final String string) Encodes the given string into a sequence of bytes using the UTF-16LE charset, storing the result into a new byte array. |
byte[] | getBytesUtf8(final String string) Encodes the given string into a sequence of bytes using the UTF-8 charset, storing the result into a new byte array. |
String | newString(final byte[] bytes, final Charset charset) Constructs a new String by decoding the specified array of bytes using the given charset. |
String | newString(final byte[] bytes, final String charsetName) Constructs a new String by decoding the specified array of bytes using the given charset. |
String | newStringIso8859_1(final byte[] bytes) Constructs a new String by decoding the specified array of bytes using the ISO-8859-1 charset. |
String | newStringUsAscii(final byte[] bytes) Constructs a new String by decoding the specified array of bytes using the US-ASCII charset. |
String | newStringUtf16(final byte[] bytes) Constructs a new String by decoding the specified array of bytes using the UTF-16 charset. |
String | newStringUtf16Be(final byte[] bytes) Constructs a new String by decoding the specified array of bytes using the UTF-16BE charset. |
String | newStringUtf16Le(final byte[] bytes) Constructs a new String by decoding the specified array of bytes using the UTF-16LE charset. |
String | newStringUtf8(final byte[] bytes) Constructs a new String by decoding the specified array of bytes using the UTF-8 charset. |