public class DexClassReader
extends java.lang.Object
implements proguard.io.DataEntryReader
| Constructor and Description |
|---|
DexClassReader(boolean readCode,
boolean usePrimitiveArrayConstants,
proguard.classfile.visitor.ClassVisitor classVisitor)
Creates a new DexClassReader.
|
DexClassReader(boolean readCode,
proguard.classfile.visitor.ClassVisitor classVisitor)
Creates a new DexClassReader.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args)
This main method illustrates and tests the class.
|
void |
read(proguard.io.DataEntry dataEntry) |
public DexClassReader(boolean readCode,
proguard.classfile.visitor.ClassVisitor classVisitor)
Does not generate PrimitiveArrayConstants by default, which is a custom
ProGuardCORE extension.
readCode - specifies whether to read the actual code or just
skip it.classVisitor - the class visitor to which decoded classes will be
passed.public DexClassReader(boolean readCode,
boolean usePrimitiveArrayConstants,
proguard.classfile.visitor.ClassVisitor classVisitor)
If PrimitiveArrayConstants are generated then they should be converted back to standard
Java arrays before converting to Java class files using PrimitiveArrayConstantReplacer.
readCode - specifies whether to read the actual code or just
skip it.usePrimitiveArrayConstants - specifies whether PrimitiveArrayConstant can
be generated when applicable.classVisitor - the class visitor to which decoded classes will be
passed.public void read(proguard.io.DataEntry dataEntry)
throws java.io.IOException
read in interface proguard.io.DataEntryReaderjava.io.IOExceptionpublic static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception