|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.android.dx.util.Mutf8
public final class Mutf8
Modified UTF-8 as described in the dex file format spec.
Derived from libcore's MUTF-8 encoder at java.nio.charset.ModifiedUtf8.
| Method Summary | |
|---|---|
static String |
decode(ByteInput in,
char[] out)
Decodes bytes from in into out until a delimiter 0x00 is
encountered. |
static void |
encode(byte[] dst,
int offset,
String s)
Encodes the modified UTF-8 bytes corresponding to s into dst, starting at offset. |
static byte[] |
encode(String s)
Returns an array containing the modified UTF-8 form of s. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String decode(ByteInput in,
char[] out)
throws UTFDataFormatException
in into out until a delimiter 0x00 is
encountered. Returns a new string containing the decoded characters.
UTFDataFormatException
public static void encode(byte[] dst,
int offset,
String s)
s into dst, starting at offset.
public static byte[] encode(String s)
throws UTFDataFormatException
s.
UTFDataFormatException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||