Package proguard.io
Class ParallelDexClassReader
java.lang.Object
proguard.io.ParallelDexClassReader
- All Implemented Interfaces:
DataEntryReader
This data entry reader reads dex files, converts their classes, and passes them to a given class
visitor. It is essential to call shutdown() after pumping to this
DataEntryReader, as
there might be active workers left that need an orderly shutdown.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionParallelDexClassReader(boolean readCode, boolean usePrimitiveArrayConstants, ClassVisitor classVisitor, int maximumThreads) Creates a new DexClassReader. -
Method Summary
-
Field Details
-
dex2pro
-
-
Constructor Details
-
ParallelDexClassReader
public ParallelDexClassReader(boolean readCode, boolean usePrimitiveArrayConstants, ClassVisitor classVisitor, int maximumThreads) Creates a new DexClassReader.If
PrimitiveArrayConstants are generated then they should be converted back to standard Java arrays before converting to Java class files usingPrimitiveArrayConstantReplacer.- Parameters:
readCode- specifies whether to read the actual code or just skip it.usePrimitiveArrayConstants- specifies whetherPrimitiveArrayConstantcan be generated when applicable.classVisitor- the class visitor to which decoded classes will be passed.
-
-
Method Details
-
read
Description copied from interface:DataEntryReaderReads the given data entry.- Specified by:
readin interfaceDataEntryReader- Throws:
IOException
-
shutdown
public void shutdown(int timeoutSeconds) Shuts down and waits for up to timeoutSeconds for any outstanding workers to finish.
-