Class CustomCompressor


  • public class CustomCompressor
    extends java.lang.Object
    Compressor that will convert a file into a compressed file using a Deflater
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void compressFile​(java.io.File raw, java.io.File compressed)  
      private static void shovelInToOut​(java.io.InputStream in, java.io.OutputStream out)  
      • Methods inherited from class java.lang.Object

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

      • CustomCompressor

        public CustomCompressor()
    • Method Detail

      • compressFile

        public static void compressFile​(java.io.File raw,
                                        java.io.File compressed)
                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • shovelInToOut

        private static void shovelInToOut​(java.io.InputStream in,
                                          java.io.OutputStream out)
                                   throws java.io.IOException
        Throws:
        java.io.IOException