Class ZipUtil.FileUnpacker

  • All Implemented Interfaces:
    ZipEntryCallback
    Enclosing class:
    ZipUtil

    private static class ZipUtil.FileUnpacker
    extends java.lang.Object
    implements ZipEntryCallback
    Copies an entry into a File.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.io.File file  
    • Constructor Summary

      Constructors 
      Constructor Description
      FileUnpacker​(java.io.File file)  
    • 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

      • file

        private final java.io.File file
    • Constructor Detail

      • FileUnpacker

        public FileUnpacker​(java.io.File file)
    • 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