public class D8BasedDexDataEntryWriter extends DexDataEntryWriter
dexDataEntryWriter, dexFileName, otherDataEntryWriter| Constructor and Description |
|---|
D8BasedDexDataEntryWriter(proguard.classfile.ClassPool classPool,
proguard.util.StringMatcher classNameFilter,
proguard.io.ClassPath libraryJars,
java.lang.String dexFileName,
boolean forceDex,
int minSdkVersion,
boolean debuggable,
proguard.io.DataEntryReader extraDexDataEntryVisitor,
proguard.io.DataEntryWriter dexDataEntryWriter,
proguard.io.DataEntryWriter otherDataEntryWriter)
Creates a new D8BasedDexDataEntryWriter.
|
| Modifier and Type | Method and Description |
|---|---|
protected proguard.classfile.visitor.ClassVisitor |
createClassConverter()
Creates a new class converter that collects converted classes
in our Dex composer.
|
void |
println(java.io.PrintWriter pw,
java.lang.String prefix) |
protected void |
writeDex(java.io.OutputStream outputStream)
Creates a new Dex instance from the collected classes.
|
close, createDirectory, createOutputStream, sameOutputStreampublic D8BasedDexDataEntryWriter(proguard.classfile.ClassPool classPool,
proguard.util.StringMatcher classNameFilter,
proguard.io.ClassPath libraryJars,
java.lang.String dexFileName,
boolean forceDex,
int minSdkVersion,
boolean debuggable,
proguard.io.DataEntryReader extraDexDataEntryVisitor,
proguard.io.DataEntryWriter dexDataEntryWriter,
proguard.io.DataEntryWriter otherDataEntryWriter)
classPool - the class pool from which classes are
collected.classNameFilter - an optional filter for classes to be
written.dexFileName - the dex file name.forceDex - specifies whether the dex files should
always be written, even if they don't
contain any code.minSdkVersion - the minimum supported API level.debuggable - whether the dex file shall be debuggable
or not.extraDexDataEntryVisitor - an optional extra visitor for all dex
data entries that written. The visitor
can use the data entry names, but
must not read their contents.dexDataEntryWriter - the writer to which the converted dex
file is written.otherDataEntryWriter - the writer to which other data entries
are written.protected proguard.classfile.visitor.ClassVisitor createClassConverter()
DexDataEntryWriterprotected void writeDex(java.io.OutputStream outputStream)
throws java.io.IOException
DexDataEntryWriterwriteDex in class DexDataEntryWriterjava.io.IOExceptionpublic void println(java.io.PrintWriter pw,
java.lang.String prefix)
println in interface proguard.io.DataEntryWriterprintln in class DexDataEntryWriter