com.android.dx.command.dump
Class ClassDumper

java.lang.Object
  extended by com.android.dx.command.dump.BaseDumper
      extended by com.android.dx.command.dump.ClassDumper
All Implemented Interfaces:
ParseObserver

public final class ClassDumper
extends BaseDumper

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
 
Method Summary
 void 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, getAt, getBytes, getFilePath, getRawBytes, getStrictParse, getWidth1, getWidth2, hexDump, parsed, print, println, setAt, startParsingMember, twoColumns
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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 file
out - non-null; where to dump to passed in as <= 0
filePath - the file path for the class, excluding any base directory specification
args - bag of commandline arguments

dump

public void dump()
Does the dumping.



Copyright © 2015. All rights reserved.