public class DeflateDecoder extends Decoder implements DeflateName
NAME| Constructor and Description |
|---|
DeflateDecoder()
Construct
DeflateDecoder. |
DeflateDecoder(java.util.Set<DeflateMode> modes)
Construct
DeflateDecoder. |
| Modifier and Type | Method and Description |
|---|---|
int |
decode(java.nio.ByteBuffer dst,
java.nio.channels.ReadableByteChannel src)
Decode data.
|
java.lang.String |
name()
Get the compression name.
|
void |
reset()
Reset the compression engine to it's initial state.
|
java.lang.String |
toString() |
beginProcessing, endProcessing, processingTime, rateIn, rateOut, totalIn, totalOutpublic DeflateDecoder()
DeflateDecoder.public DeflateDecoder(java.util.Set<DeflateMode> modes)
DeflateDecoder.modes - Decoder modes to use.public void reset()
Compressionreset in class Compressionpublic int decode(java.nio.ByteBuffer dst,
java.nio.channels.ReadableByteChannel src)
throws java.io.IOException
Decoderdecode in class Decoderdst - The ByteBuffer receiving the decoded bytes.src - The ReadableByteChannel providing the encoded
bytes.-1 if the end of the
encoded stream has been reached.java.io.IOException - if an I/O error occurs.public java.lang.String name()
Compressionname in class Compressionpublic java.lang.String toString()
toString in class java.lang.Object