Package com.android.dx.util
Class HexParser
java.lang.Object
com.android.dx.util.HexParser
Utilities for parsing hexadecimal text.
-
Method Summary
-
Method Details
-
parse
Parses the given text as hex, returning abyte[]
corresponding to the text. The format is simple: Each line may start with a hex offset followed by a colon (which is verified and presumably used just as a comment), and then consists of hex digits freely interspersed with whitespace. If a pound sign is encountered, it and the rest of the line are ignored as a comment. If a double quote is encountered, then the ASCII value of the subsequent characters is used, until the next double quote. Quoted strings may not span multiple lines.- Parameters:
src
-non-null;
the source string- Returns:
non-null;
the parsed form
-