Derived from libcore's MUTF-8 encoder at java.nio.charset.ModifiedUtf8.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static long | countBytes(String s, boolean shortLength)
Returns the number of bytes the modified UTF8 representation of 's' would take. |
| public static String | |
| public static void | |
| public static byte[] |
| Mutf8 | back to summary |
|---|---|
| private Mutf8() | |
| countBytes | back to summary |
|---|---|
| private static long countBytes(String s, boolean shortLength) throws UTFDataFormatException Returns the number of bytes the modified UTF8 representation of 's' would take. | |
| decode | back to summary |
|---|---|
| public static String decode(ByteInput in, char[] out) throws UTFDataFormatException Decodes bytes from | |
| encode | back to summary |
|---|---|
| public static void encode(byte[] dst, int offset, String s) Encodes the modified UTF-8 bytes corresponding to | |
| encode | back to summary |
|---|---|
| public static byte[] encode(String s) throws UTFDataFormatException Returns an array containing the modified UTF-8 form of | |