Package com.linkedin.alpini.io
Class PigzOutputStream.Compressor
- java.lang.Object
-
- com.linkedin.alpini.io.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 Summary
Fields Modifier and Type Field Description protected static org.apache.logging.log4j.LoggerLOG
-
Constructor Summary
Constructors Modifier Constructor Description protectedCompressor(PigzOutputStream pigz)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voiddeflate()protected abstract intgetInputAvailable()protected abstract byte[]getInputBuffer()protected abstract intgetOutputAvailable()protected abstract byte[]getOutputBuffer()intgetSequence()booleanisFinalBlock()protected abstract booleanisInputBufferFull()protected abstract voidreinitDeflator()protected abstract voidresetDeflator()voidrun()protected abstract voidsetDeflateDictionary(byte[] dict, int dictLength)voidsetDictionary(byte[] dict, int dictLength)protected abstract intwrite(byte[] b, int off, int len)
-
-
-
Constructor Detail
-
Compressor
protected Compressor(@Nonnull PigzOutputStream pigz)
-
-
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:
runin interfacejava.lang.Runnable
-
-