Class BuiltInZlibInflater
java.lang.Object
java.util.zip.Inflater
org.apache.hadoop.io.compress.zlib.BuiltInZlibInflater
- All Implemented Interfaces:
Decompressor
A wrapper around java.util.zip.Inflater to make it conform
to org.apache.hadoop.io.compress.Decompressor interface.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintdecompress(byte[] b, int off, int len) Fills specified buffer with uncompressed data.Methods inherited from class java.util.zip.Inflater
end, finished, getAdler, getBytesRead, getBytesWritten, getRemaining, getTotalIn, getTotalOut, inflate, inflate, inflate, needsDictionary, needsInput, reset, setDictionary, setDictionary, setDictionary, setInput, setInput, setInputMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.io.compress.Decompressor
end, finished, getRemaining, needsDictionary, needsInput, reset, setDictionary, setInput
-
Constructor Details
-
BuiltInZlibInflater
public BuiltInZlibInflater(boolean nowrap) -
BuiltInZlibInflater
public BuiltInZlibInflater()
-
-
Method Details
-
decompress
Description copied from interface:DecompressorFills specified buffer with uncompressed data. Returns actual number of bytes of uncompressed data. A return value of 0 indicates thatDecompressor.needsInput()should be called in order to determine if more input data is required.- Specified by:
decompressin interfaceDecompressor- Parameters:
b- Buffer for the uncompressed dataoff- Start offset of the datalen- Size of the buffer- Returns:
- The actual number of bytes of uncompressed data.
- Throws:
IOException- raised on errors performing I/O.
-