Package com.linkedin.alpini.io
Class PigzDeflateCompressor
- java.lang.Object
-
- com.linkedin.alpini.io.PigzOutputStream.Compressor
-
- com.linkedin.alpini.io.PigzDeflateCompressor
-
- All Implemented Interfaces:
java.lang.Runnable
public class PigzDeflateCompressor extends PigzOutputStream.Compressor
-
-
Field Summary
-
Fields inherited from class com.linkedin.alpini.io.PigzOutputStream.Compressor
LOG
-
-
Constructor Summary
Constructors Constructor Description PigzDeflateCompressor(PigzOutputStream pigz, int compressionLevel, int blockSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
deflate()
protected int
getInputAvailable()
protected byte[]
getInputBuffer()
protected int
getOutputAvailable()
protected byte[]
getOutputBuffer()
protected boolean
isInputBufferFull()
protected void
reinitDeflator()
protected void
resetDeflator()
protected void
setDeflateDictionary(byte[] dict, int dictLength)
protected int
write(byte[] b, int off, int len)
-
Methods inherited from class com.linkedin.alpini.io.PigzOutputStream.Compressor
getSequence, isFinalBlock, run, setDictionary
-
-
-
-
Constructor Detail
-
PigzDeflateCompressor
public PigzDeflateCompressor(@Nonnull PigzOutputStream pigz, int compressionLevel, int blockSize)
-
-
Method Detail
-
setDeflateDictionary
protected void setDeflateDictionary(byte[] dict, int dictLength)
- Specified by:
setDeflateDictionary
in classPigzOutputStream.Compressor
-
resetDeflator
protected void resetDeflator()
- Specified by:
resetDeflator
in classPigzOutputStream.Compressor
-
reinitDeflator
protected void reinitDeflator()
- Specified by:
reinitDeflator
in classPigzOutputStream.Compressor
-
write
protected int write(@Nonnull byte[] b, int off, int len)
- Specified by:
write
in classPigzOutputStream.Compressor
-
getInputAvailable
protected int getInputAvailable()
- Specified by:
getInputAvailable
in classPigzOutputStream.Compressor
-
isInputBufferFull
protected boolean isInputBufferFull()
- Specified by:
isInputBufferFull
in classPigzOutputStream.Compressor
-
getInputBuffer
@Nonnull protected byte[] getInputBuffer()
- Specified by:
getInputBuffer
in classPigzOutputStream.Compressor
-
getOutputBuffer
@Nonnull protected byte[] getOutputBuffer()
- Specified by:
getOutputBuffer
in classPigzOutputStream.Compressor
-
getOutputAvailable
protected int getOutputAvailable()
- Specified by:
getOutputAvailable
in classPigzOutputStream.Compressor
-
deflate
protected void deflate() throws java.io.IOException
- Specified by:
deflate
in classPigzOutputStream.Compressor
- Throws:
java.io.IOException
-
-