Package com.android.dex
Class Mutf8
java.lang.Object
com.android.dex.Mutf8
Modified UTF-8 as described in the dex file format spec.
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Decodes bytes fromin
intoout
until a delimiter 0x00 is encountered.static void
Encodes the modified UTF-8 bytes corresponding tos
intodst
, starting atoffset
.static byte[]
Returns an array containing the modified UTF-8 form ofs
.
-
Method Details
-
decode
Decodes bytes fromin
intoout
until a delimiter 0x00 is encountered. Returns a new string containing the decoded characters.- Throws:
UTFDataFormatException
-
encode
Encodes the modified UTF-8 bytes corresponding tos
intodst
, starting atoffset
. -
encode
Returns an array containing the modified UTF-8 form ofs
.- Throws:
UTFDataFormatException
-