Class Zips.CopyingCallback

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private CopyingCallback​(java.util.List<ZipEntryTransformerEntry> transformerEntries, java.util.zip.ZipOutputStream out, boolean preserveTimestapms)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void process​(java.io.InputStream in, java.util.zip.ZipEntry zipEntry)
      Invoked for each entry in a ZIP file.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • entryByPath

        private final java.util.Map<java.lang.String,​ZipEntryTransformer> entryByPath
      • out

        private final java.util.zip.ZipOutputStream out
      • visitedNames

        private final java.util.Set<java.lang.String> visitedNames
      • preserveTimestapms

        private final boolean preserveTimestapms
    • Constructor Detail

      • CopyingCallback

        private CopyingCallback​(java.util.List<ZipEntryTransformerEntry> transformerEntries,
                                java.util.zip.ZipOutputStream out,
                                boolean preserveTimestapms)
    • Method Detail

      • process

        public void process​(java.io.InputStream in,
                            java.util.zip.ZipEntry zipEntry)
                     throws java.io.IOException
        Description copied from interface: ZipEntryCallback
        Invoked for each entry in a ZIP file.
        Specified by:
        process in interface ZipEntryCallback
        Parameters:
        in - contents of the ZIP entry.
        zipEntry - ZIP entry.
        Throws:
        java.io.IOException - when any processing exception occurs