Package proguard.dexfile.reader
Class DexContainerReader
- java.lang.Object
-
- proguard.dexfile.reader.DexContainerReader
-
- All Implemented Interfaces:
BaseDexFileReader
public class DexContainerReader extends java.lang.Object implements BaseDexFileReader
Open and read a dex container, introduced in dex format v41. To read a dex file with this, use theDexReaderFactory
factory methods:DexFileVisitor visitor = new xxxFileVisitor(); BaseDexFileReader reader = DexReaderFactory.createSingleReader(dexFile); reader.accept(visitor);
-
-
Constructor Summary
Constructors Constructor Description DexContainerReader(java.util.Collection<? extends BaseDexFileReader> readers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(java.util.function.Consumer<java.lang.String> stringConsumer)
void
accept(DexFileVisitor dv)
void
accept(DexFileVisitor dv, int config)
void
accept(DexFileVisitor dv, int classIdx, int config)
java.util.List<java.lang.String>
getClassNames()
int
getDexVersion()
-
-
-
Constructor Detail
-
DexContainerReader
public DexContainerReader(java.util.Collection<? extends BaseDexFileReader> readers)
-
-
Method Detail
-
getDexVersion
public int getDexVersion()
- Specified by:
getDexVersion
in interfaceBaseDexFileReader
-
accept
public void accept(DexFileVisitor dv)
- Specified by:
accept
in interfaceBaseDexFileReader
-
getClassNames
public java.util.List<java.lang.String> getClassNames()
- Specified by:
getClassNames
in interfaceBaseDexFileReader
-
accept
public void accept(DexFileVisitor dv, int config)
- Specified by:
accept
in interfaceBaseDexFileReader
-
accept
public void accept(DexFileVisitor dv, int classIdx, int config)
- Specified by:
accept
in interfaceBaseDexFileReader
-
accept
public void accept(java.util.function.Consumer<java.lang.String> stringConsumer)
- Specified by:
accept
in interfaceBaseDexFileReader
-
-