public class DexClassReader extends java.lang.Object implements DataEntryReader
Constructor and Description |
---|
DexClassReader(boolean readCode,
boolean usePrimitiveArrayConstants,
ClassVisitor classVisitor)
Creates a new DexClassReader.
|
DexClassReader(boolean readCode,
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(DataEntry dataEntry)
Reads the given data entry.
|
public DexClassReader(boolean readCode, ClassVisitor classVisitor)
Does not generate PrimitiveArrayConstant
s 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, ClassVisitor classVisitor)
If PrimitiveArrayConstant
s 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(DataEntry dataEntry) throws java.io.IOException
DataEntryReader
read
in interface DataEntryReader
java.io.IOException
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception