Class Zip


  • public class Zip
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Zip()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void unzip​(java.io.InputStream source, java.io.File outputDir)  
      static void unzip​(java.lang.String source, java.io.File outputDir)  
      static void unzipFile​(java.io.File output, java.io.InputStream zipStream, java.lang.String name)  
      static java.io.File unzipToTempDir​(java.io.InputStream source, java.lang.String prefix, java.lang.String suffix)  
      static java.io.File unzipToTempDir​(java.lang.String source, java.lang.String prefix, java.lang.String suffix)  
      static java.lang.String zip​(java.io.File input)  
      • Methods inherited from class java.lang.Object

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

      • Zip

        public Zip()
    • Method Detail

      • zip

        public static java.lang.String zip​(java.io.File input)
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • unzipToTempDir

        public static java.io.File unzipToTempDir​(java.lang.String source,
                                                  java.lang.String prefix,
                                                  java.lang.String suffix)
                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • unzip

        public static void unzip​(java.lang.String source,
                                 java.io.File outputDir)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • unzipToTempDir

        public static java.io.File unzipToTempDir​(java.io.InputStream source,
                                                  java.lang.String prefix,
                                                  java.lang.String suffix)
                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • unzip

        public static void unzip​(java.io.InputStream source,
                                 java.io.File outputDir)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • unzipFile

        public static void unzipFile​(java.io.File output,
                                     java.io.InputStream zipStream,
                                     java.lang.String name)
                              throws java.io.IOException
        Throws:
        java.io.IOException