程序包 proguard.io
类 DataEntryWriterFactory
java.lang.Object
proguard.io.DataEntryWriterFactory
This class can create DataEntryWriter instances based on class paths. The writers will wrap the
output in the proper apks, jars, aars, wars, ears, and zips. \
-
构造器概要
构造器构造器说明DataEntryWriterFactory(ClassPool programClassPool, ResourceFilePool resourceFilePool, int modificationTime, StringMatcher uncompressedFilter, int uncompressedAlignment, boolean pageAlignNativeLibs, boolean mergeAarJars, KeyStore.PrivateKeyEntry[] privateKeyEntries) Creates a new DataEntryWriterFactory.DataEntryWriterFactory(ClassPool programClassPool, ResourceFilePool resourceFilePool, int modificationTime, StringMatcher uncompressedFilter, int uncompressedAlignment, boolean pageAlignNativeLibs, boolean mergeAarJars, KeyStore.PrivateKeyEntry[] privateKeyEntries, Function<DataEntryWriter, DataEntryWriter> alternativeClassDataEntryWriterProvider) Creates a new DataEntryWriterFactory.DataEntryWriterFactory(ClassPool programClassPool, ResourceFilePool resourceFilePool, StringMatcher uncompressedFilter, int uncompressedAlignment, boolean pageAlignNativeLibs, boolean mergeAarJars, KeyStore.PrivateKeyEntry[] privateKeyEntries, Function<DataEntryWriter, DataEntryWriter> alternativeClassDataEntryWriterProvider) Creates a new DataEntryWriterFactory. -
方法概要
修饰符和类型方法说明createDataEntryWriter(ClassPath classPath, int fromIndex, int toIndex, DataEntryWriter extraDataEntryWriter) Creates a DataEntryWriter that can write to the given class path entries.
-
构造器详细资料
-
DataEntryWriterFactory
public DataEntryWriterFactory(ClassPool programClassPool, ResourceFilePool resourceFilePool, int modificationTime, StringMatcher uncompressedFilter, int uncompressedAlignment, boolean pageAlignNativeLibs, boolean mergeAarJars, KeyStore.PrivateKeyEntry[] privateKeyEntries) Creates a new DataEntryWriterFactory.- 参数:
programClassPool- the program class pool to process.resourceFilePool- the resource file pool to process.modificationTime- the modification date and time of the zip entries, in DOS format.uncompressedFilter- an optional filter for files that should not be compressed.uncompressedAlignment- the desired alignment for the data of uncompressed entries.pageAlignNativeLibs- specifies whether to align native libraries at page boundaries.mergeAarJars- specifies whether to merge all jars in an Android library aar into a single jar.privateKeyEntries- optional private keys to sign jars.
-
DataEntryWriterFactory
public DataEntryWriterFactory(ClassPool programClassPool, ResourceFilePool resourceFilePool, int modificationTime, StringMatcher uncompressedFilter, int uncompressedAlignment, boolean pageAlignNativeLibs, boolean mergeAarJars, KeyStore.PrivateKeyEntry[] privateKeyEntries, Function<DataEntryWriter, DataEntryWriter> alternativeClassDataEntryWriterProvider) Creates a new DataEntryWriterFactory.- 参数:
programClassPool- the program class pool to process.resourceFilePool- the resource file pool to process.modificationTime- the modification date and time of the zip entries, in DOS format.uncompressedFilter- an optional filter for files that should not be compressed.uncompressedAlignment- the desired alignment for the data of uncompressed entries.pageAlignNativeLibs- specifies whether to align native libraries at page boundaries.mergeAarJars- specifies whether to merge all jars in an Android app bundle into a single jar.privateKeyEntries- optional private keys to sign jars.alternativeClassDataEntryWriterProvider- optional, to provide an alternative class writer, instead of the defaultClassDataEntryWriter.
-
DataEntryWriterFactory
public DataEntryWriterFactory(ClassPool programClassPool, ResourceFilePool resourceFilePool, StringMatcher uncompressedFilter, int uncompressedAlignment, boolean pageAlignNativeLibs, boolean mergeAarJars, KeyStore.PrivateKeyEntry[] privateKeyEntries, Function<DataEntryWriter, DataEntryWriter> alternativeClassDataEntryWriterProvider) Creates a new DataEntryWriterFactory.- 参数:
programClassPool- the program class pool to process.resourceFilePool- the resource file pool to process.uncompressedFilter- an optional filter for files that should not be compressed.uncompressedAlignment- the desired alignment for the data of uncompressed entries.pageAlignNativeLibs- specifies whether to align native libraries at page boundaries.mergeAarJars- specifies whether to merge all jars in an Android app bundle into a single jar.privateKeyEntries- optional private keys to sign jars.alternativeClassDataEntryWriterProvider- optional, to provide an alternative class writer, instead of the defaultClassDataEntryWriter.
-
-
方法详细资料
-
createDataEntryWriter
public DataEntryWriter createDataEntryWriter(ClassPath classPath, int fromIndex, int toIndex, DataEntryWriter extraDataEntryWriter) Creates a DataEntryWriter that can write to the given class path entries.- 参数:
classPath- the output class path.fromIndex- the start index in the class path.toIndex- the end index in the class path.extraDataEntryWriter- a writer to which extra injected files can be written.- 返回:
- a DataEntryWriter for writing to the given class path entries.
-