ahc.util.bytes
Class StringEncoder
java.lang.Object
|
+--ahc.util.bytes.StringEncoder
- public class StringEncoder
- extends java.lang.Object
This class encodes a string based on a character encoding and a StringEndEncoding, i.e. a way to
represent the length of a string.
- Author:
- Arno Haase
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringEncoder
public StringEncoder()
getBytes
public static byte[] getBytes(java.lang.String str,
java.lang.String encoding,
StringEndEncoding end)
throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
getBytesSafe
public static byte[] getBytesSafe(java.lang.String str,
java.lang.String encoding,
StringEndEncoding end)
getBytesUtf8
public static byte[] getBytesUtf8(java.lang.String str,
StringEndEncoding end)
getBytesIso8859_1
public static byte[] getBytesIso8859_1(java.lang.String str,
StringEndEncoding end)