程序包 proguard.io

类 ZipWriter

java.lang.Object
proguard.io.ZipWriter
所有已实现的接口:
AutoCloseable, DataEntryWriter

public class ZipWriter extends Object implements DataEntryWriter
This DataEntryWriter sends data entries to the zip files specified by their parents.
  • 字段详细资料

    • currentZipOutput

      public ZipOutput currentZipOutput
  • 构造器详细资料

    • ZipWriter

      public ZipWriter(DataEntryWriter dataEntryWriter)
      Creates a new ZipWriter that compresses all zip entries.
      参数:
      dataEntryWriter - the data entry writer that can provide output streams for the zip archives.
    • ZipWriter

      public ZipWriter(StringMatcher uncompressedFilter, int uncompressedAlignment, boolean useZip64, int modificationTime, DataEntryWriter dataEntryWriter)
      Creates a new ZipWriter.
      参数:
      uncompressedFilter - an optional filter for files that should not be compressed.
      uncompressedAlignment - the desired alignment for the data of uncompressed entries.
      useZip64 - Whether to write out the archive in zip64 format.
      modificationTime - the modification date and time of the zip entries, in DOS format.
      dataEntryWriter - the data entry writer that can provide output streams for the zip archives.
    • ZipWriter

      public ZipWriter(StringMatcher uncompressedFilter, int uncompressedAlignment, boolean useZip64, StringMatcher extraUncompressedAlignmentFilter, int extraUncompressedAlignment, int modificationTime, DataEntryWriter dataEntryWriter)
      Creates a new ZipWriter.
      参数:
      uncompressedFilter - an optional filter for files that should not be compressed.
      uncompressedAlignment - the desired alignment for the data of uncompressed entries.
      useZip64 - Whether to write out the archive in zip64 format.
      extraUncompressedAlignmentFilter - an optional filter for files that should not be compressed and use a different alignment.
      extraUncompressedAlignment - the desired alignment for the data of entries matching extraAlignmentFilter.
      modificationTime - the modification date and time of the zip entries, in DOS format.
      dataEntryWriter - the data entry writer that can provide output streams for the zip archives.
    • ZipWriter

      public ZipWriter(StringMatcher uncompressedFilter, int uncompressedAlignment, boolean useZip64, int modificationTime, byte[] header, DataEntryWriter dataEntryWriter)
      Creates a new ZipWriter.
      参数:
      uncompressedFilter - an optional filter for files that should not be compressed.
      uncompressedAlignment - the desired alignment for the data of uncompressed entries.
      useZip64 - Whether to write out the archive in zip64 format.
      modificationTime - the modification date and time of the zip entries, in DOS format.
      dataEntryWriter - the data entry writer that can provide output streams for the zip archives.
    • ZipWriter

      public ZipWriter(StringMatcher uncompressedFilter, int uncompressedAlignment, StringMatcher extraUncompressedAlignmentFilter, int extraUncompressedAlignment, int modificationTime, byte[] header, DataEntryWriter dataEntryWriter)
      Creates a new ZipWriter.
      参数:
      uncompressedFilter - an optional filter for files that should not be compressed.
      uncompressedAlignment - the desired alignment for the data of uncompressed entries.
      extraUncompressedAlignmentFilter - an optional filter for files that should not be compressed and use a different alignment.
      extraUncompressedAlignment - the desired alignment for the data of entries matching extraAlignmentFilter.
      modificationTime - the modification date and time of the zip entries, in DOS format.
      dataEntryWriter - the data entry writer that can provide output streams for the zip archives.
    • ZipWriter

      public ZipWriter(StringMatcher uncompressedFilter, int uncompressedAlignment, boolean useZip64, StringMatcher extraUncompressedAlignmentFilter, int extraUncompressedAlignment, int modificationTime, byte[] header, DataEntryWriter dataEntryWriter)
      Creates a new ZipWriter.
      参数:
      uncompressedFilter - an optional filter for files that should not be compressed.
      uncompressedAlignment - the desired alignment for the data of uncompressed entries.
      useZip64 - Whether to write out the archive in zip64 format.
      extraUncompressedAlignmentFilter - an optional filter for files that should not be compressed and use a different alignment.
      extraUncompressedAlignment - the desired alignment for the data of entries matching extraAlignmentFilter.
      modificationTime - the modification date and time of the zip entries, in DOS format.
      dataEntryWriter - the data entry writer that can provide output streams for the zip archives.
  • 方法详细资料