Class DeflaterOutputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable

    class DeflaterOutputStream
    extends CompressedOutputStream
    • Field Detail

      • buff

        private byte[] buff
      • deflater

        protected java.util.zip.Deflater deflater
    • Method Detail

      • write

        public void write​(byte[] b)
                   throws java.io.IOException
        Overrides:
        write in class CompressedOutputStream
        Throws:
        java.io.IOException
      • write

        public void write​(int bval)
                   throws java.io.IOException
        Overrides:
        write in class CompressedOutputStream
        Throws:
        java.io.IOException
      • write

        public void write​(byte[] buf,
                          int off,
                          int len)
                   throws java.io.IOException
        Overrides:
        write in class CompressedOutputStream
        Throws:
        java.io.IOException
      • deflate

        private void deflate()
                      throws java.io.IOException
        Throws:
        java.io.IOException