程序包 proguard

类 DataEntryWriterFactory


  • public class DataEntryWriterFactory
    extends java.lang.Object
    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​(proguard.classfile.ClassPool programClassPool, proguard.resources.file.ResourceFilePool resourceFilePool, int modificationTime, proguard.util.StringMatcher uncompressedFilter, int uncompressedAlignment, boolean pageAlignNativeLibs, boolean mergeAarJars, java.security.KeyStore.PrivateKeyEntry[] privateKeyEntries)
      Creates a new DataEntryWriterFactory.
      DataEntryWriterFactory​(proguard.classfile.ClassPool programClassPool, proguard.resources.file.ResourceFilePool resourceFilePool, int modificationTime, proguard.util.StringMatcher uncompressedFilter, int uncompressedAlignment, boolean pageAlignNativeLibs, boolean mergeAarJars, java.security.KeyStore.PrivateKeyEntry[] privateKeyEntries, java.util.function.Function<proguard.io.DataEntryWriter,​proguard.io.DataEntryWriter> alternativeClassDataEntryWriterProvider)
      Creates a new DataEntryWriterFactory.
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      proguard.io.DataEntryWriter createDataEntryWriter​(ClassPath classPath, int fromIndex, int toIndex, proguard.io.DataEntryWriter extraDataEntryWriter)
      Creates a DataEntryWriter that can write to the given class path entries.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • DataEntryWriterFactory

        public DataEntryWriterFactory​(proguard.classfile.ClassPool programClassPool,
                                      proguard.resources.file.ResourceFilePool resourceFilePool,
                                      int modificationTime,
                                      proguard.util.StringMatcher uncompressedFilter,
                                      int uncompressedAlignment,
                                      boolean pageAlignNativeLibs,
                                      boolean mergeAarJars,
                                      java.security.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​(proguard.classfile.ClassPool programClassPool,
                                      proguard.resources.file.ResourceFilePool resourceFilePool,
                                      int modificationTime,
                                      proguard.util.StringMatcher uncompressedFilter,
                                      int uncompressedAlignment,
                                      boolean pageAlignNativeLibs,
                                      boolean mergeAarJars,
                                      java.security.KeyStore.PrivateKeyEntry[] privateKeyEntries,
                                      java.util.function.Function<proguard.io.DataEntryWriter,​proguard.io.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 default ClassDataEntryWriter.
    • 方法详细资料

      • createDataEntryWriter

        public proguard.io.DataEntryWriter createDataEntryWriter​(ClassPath classPath,
                                                                 int fromIndex,
                                                                 int toIndex,
                                                                 proguard.io.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.