public class ParallelDexClassReader extends java.lang.Object implements DataEntryReader
DataEntryReader
, as
there might be active workers left that need an orderly shutdown.Constructor and Description |
---|
ParallelDexClassReader(boolean readCode,
boolean usePrimitiveArrayConstants,
ClassVisitor classVisitor,
int maximumThreads)
Creates a new DexClassReader.
|
Modifier and Type | Method and Description |
---|---|
void |
read(DataEntry dataEntry)
Reads the given data entry.
|
void |
shutdown(int timeoutSeconds)
Shuts down and waits for up to timeoutSeconds for any outstanding workers to finish.
|
public final Dex2Pro dex2pro
public ParallelDexClassReader(boolean readCode, boolean usePrimitiveArrayConstants, ClassVisitor classVisitor, int maximumThreads)
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 void shutdown(int timeoutSeconds)