Class UncompressorOutputStream

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

    public class UncompressorOutputStream
    extends java.io.OutputStream
    Simple wrapper or wrapper around Uncompressor, to help with inter-operability.
    • Field Detail

      • _singleByte

        private byte[] _singleByte
    • Constructor Detail

      • UncompressorOutputStream

        public UncompressorOutputStream​(Uncompressor uncomp)
    • Method Detail

      • close

        public void close()
                   throws java.io.IOException
        Call to this method will result in call to Uncompressor.complete(), which is idempotent (i.e. can be called multiple times without ill effects).
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class java.io.OutputStream
        Throws:
        java.io.IOException
      • flush

        public void flush()
        Specified by:
        flush in interface java.io.Flushable
        Overrides:
        flush in class java.io.OutputStream
      • write

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

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

        public void write​(int b)
                   throws java.io.IOException
        Specified by:
        write in class java.io.OutputStream
        Throws:
        java.io.IOException