Class PigzOutputStream.Compressor

  • All Implemented Interfaces:
    java.lang.Runnable
    Direct Known Subclasses:
    PigzDeflateCompressor
    Enclosing class:
    PigzOutputStream

    public abstract static class PigzOutputStream.Compressor
    extends java.lang.Object
    implements java.lang.Runnable
    • Field Detail

      • LOG

        protected static final org.apache.logging.log4j.Logger LOG
    • Method Detail

      • isFinalBlock

        public final boolean isFinalBlock()
      • getSequence

        public final int getSequence()
      • setDictionary

        public final void setDictionary​(byte[] dict,
                                        int dictLength)
      • setDeflateDictionary

        protected abstract void setDeflateDictionary​(byte[] dict,
                                                     int dictLength)
      • resetDeflator

        protected abstract void resetDeflator()
      • reinitDeflator

        protected abstract void reinitDeflator()
      • write

        protected abstract int write​(@Nonnull
                                     byte[] b,
                                     int off,
                                     int len)
      • getInputAvailable

        protected abstract int getInputAvailable()
      • isInputBufferFull

        protected abstract boolean isInputBufferFull()
      • getInputBuffer

        @Nonnull
        protected abstract byte[] getInputBuffer()
      • getOutputBuffer

        @Nonnull
        protected abstract byte[] getOutputBuffer()
      • getOutputAvailable

        protected abstract int getOutputAvailable()
      • deflate

        protected abstract void deflate()
                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • run

        public final void run()
        Specified by:
        run in interface java.lang.Runnable