Package com.android.dx.command.dump
Class ClassDumper
java.lang.Object
com.android.dx.command.dump.BaseDumper
com.android.dx.command.dump.ClassDumper
- All Implemented Interfaces:
ParseObserver
Utility to dump the contents of class files in a human-friendly form.
-
Field Summary
Fields inherited from class com.android.dx.command.dump.BaseDumper
args, dexOptions
-
Method Summary
Modifier and TypeMethodDescriptionvoid
dump()
Does the dumping.static void
dump
(byte[] bytes, PrintStream out, String filePath, com.android.dx.command.dump.Args args) Dumps the given array, interpreting it as a class file.Methods inherited from class com.android.dx.command.dump.BaseDumper
changeIndent, endParsingMember, getBytes, getFilePath, getRawBytes, getReadBytes, getStrictParse, getWidth1, getWidth2, hexDump, parsed, print, println, startParsingMember, twoColumns
-
Method Details
-
dump
public static void dump(byte[] bytes, PrintStream out, String filePath, com.android.dx.command.dump.Args args) Dumps the given array, interpreting it as a class file.- Parameters:
bytes
-non-null;
bytes of the (alleged) class fileout
-non-null;
where to dump to passed in as <= 0filePath
- the file path for the class, excluding any base directory specificationargs
- bag of commandline arguments
-
dump
public void dump()Does the dumping.
-