Class CommonZipExpander

  • Direct Known Subclasses:
    CleanupZipExpander

    public class CommonZipExpander
    extends java.lang.Object
    Used for expanding a given archive to a target directory. Subclasses can override beforeExpansion and/or afterExpansion as needed for additional processing.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected IntLogger logger  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void afterExpansion​(java.io.File sourceArchiveFile, java.io.File targetExpansionDirectory)  
      void beforeExpansion​(java.io.File sourceArchiveFile, java.io.File targetExpansionDirectory)  
      void expand​(java.io.File sourceArchiveFile, java.io.File targetExpansionDirectory)  
      void expand​(java.io.InputStream sourceArchiveStream, java.io.File targetExpansionDirectory)  
      • Methods inherited from class java.lang.Object

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

    • Constructor Detail

      • CommonZipExpander

        public CommonZipExpander​(IntLogger logger)
      • CommonZipExpander

        public CommonZipExpander​(IntLogger logger,
                                 org.apache.commons.compress.archivers.examples.Expander expander)
    • Method Detail

      • expand

        public void expand​(java.io.File sourceArchiveFile,
                           java.io.File targetExpansionDirectory)
                    throws java.io.IOException,
                           org.apache.commons.compress.archivers.ArchiveException,
                           IntegrationException
        Throws:
        java.io.IOException
        org.apache.commons.compress.archivers.ArchiveException
        IntegrationException
      • expand

        public void expand​(java.io.InputStream sourceArchiveStream,
                           java.io.File targetExpansionDirectory)
                    throws java.io.IOException,
                           org.apache.commons.compress.archivers.ArchiveException,
                           IntegrationException
        Throws:
        java.io.IOException
        org.apache.commons.compress.archivers.ArchiveException
        IntegrationException