public class GzipDecoder extends ZlibDecoder
ZlibCodec.Mode
inflater
Constructor and Description |
---|
GzipDecoder()
Creates a new gzip decoder.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
postFinish(ISession session,
ByteBuffer in)
Parses the gzip footer.
|
protected void |
postInflate(ISession session,
byte[] data,
int off,
int len)
Updates the CRC-32.
|
protected void |
preInflate(ISession session,
ByteBuffer in)
Parses the gzip header.
|
added, decode, event, inflateBound, isFinished, removed
getInboundType, getOutboundType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getInboundType, getOutboundType
protected void preInflate(ISession session, ByteBuffer in) throws Exception
preInflate
in class ZlibDecoder
session
- the session object the decoder is associated within
- the compressed input dataException
- if an error has occurredprotected void postInflate(ISession session, byte[] data, int off, int len)
postInflate
in class ZlibDecoder
session
- the session object the decoder is associated withdata
- an array with decompressed dataoff
- the start offset in the array at which the data should
be readlen
- the number of bytes to readprotected boolean postFinish(ISession session, ByteBuffer in) throws Exception
postFinish
in class ZlibDecoder
session
- the session object the decoder is associated within
- the compressed input datatrue
if all bytes forming the footer has been already
consumedException
- if an error has occurredCopyright © 2017–2022 SNF4J.ORG. All rights reserved.