public abstract class DexDataEntryWriter
extends java.lang.Object
implements proguard.io.DataEntryWriter
IdleRewriter| Modifier and Type | Field and Description |
|---|---|
protected proguard.io.DataEntryWriter |
dexDataEntryWriter |
protected java.lang.String |
dexFileName |
protected proguard.io.DataEntryWriter |
otherDataEntryWriter |
| Constructor and Description |
|---|
DexDataEntryWriter(proguard.classfile.ClassPool classPool,
proguard.util.StringMatcher classNameFilter,
java.lang.String dexFileName,
boolean forceDex,
proguard.io.DataEntryReader extraDexDataEntryVisitor,
proguard.io.DataEntryWriter dexDataEntryWriter,
proguard.io.DataEntryWriter otherDataEntryWriter)
Creates a new DexDataEntryWriter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
createDirectory(proguard.io.DataEntry dataEntry) |
java.io.OutputStream |
createOutputStream(proguard.io.DataEntry dataEntry) |
void |
println(java.io.PrintWriter pw,
java.lang.String prefix) |
boolean |
sameOutputStream(proguard.io.DataEntry dataEntry1,
proguard.io.DataEntry dataEntry2) |
protected abstract void |
writeDex(java.io.OutputStream outputStream)
Creates a new Dex instance from the collected classes.
|
protected final java.lang.String dexFileName
protected final proguard.io.DataEntryWriter dexDataEntryWriter
protected final proguard.io.DataEntryWriter otherDataEntryWriter
public DexDataEntryWriter(proguard.classfile.ClassPool classPool,
proguard.util.StringMatcher classNameFilter,
java.lang.String dexFileName,
boolean forceDex,
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.dexDataEntryWriter - the writer to which the converted dex
file is written.otherDataEntryWriter - the writer to which other data entries
are written.public boolean createDirectory(proguard.io.DataEntry dataEntry)
throws java.io.IOException
createDirectory in interface proguard.io.DataEntryWriterjava.io.IOExceptionpublic boolean sameOutputStream(proguard.io.DataEntry dataEntry1,
proguard.io.DataEntry dataEntry2)
throws java.io.IOException
sameOutputStream in interface proguard.io.DataEntryWriterjava.io.IOExceptionpublic java.io.OutputStream createOutputStream(proguard.io.DataEntry dataEntry)
throws java.io.IOException
createOutputStream in interface proguard.io.DataEntryWriterjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.lang.AutoCloseableclose in interface proguard.io.DataEntryWriterjava.io.IOExceptionpublic void println(java.io.PrintWriter pw,
java.lang.String prefix)
println in interface proguard.io.DataEntryWriterprotected abstract void writeDex(java.io.OutputStream outputStream)
throws java.io.IOException
java.io.IOException