GeezerVison is showing netty.io — BrotliDecoder (Netty API Reference (4.1.141.Final))
Class BrotliDecoder
-
-
-
Constructor Summary
Constructors
Constructor
Description
Creates a new BrotliDecoder with a default 8kB input buffer
Creates a new BrotliDecoder
Creates a new BrotliDecoder
-
Method Summary
Modifier and Type
Method
Description
void
void
protected void
Decode the from one ByteBuf to an other.
void
Do nothing by default, sub-classes may override this method.
protected void
Gets called after the ByteToMessageDecoder was removed from the actual context and it doesn't handle
events anymore.
Creates a new BrotliDecoder that use the maxAllocation
semantics: the supplied value bounds the size of the emitted decompressed chunks.
actualReadableBytes, callDecode, channelRead, decodeLast, discardSomeReadBytes, handlerRemoved, internalBuffer, isSingleDecode, setCumulator, setDiscardAfterReads, setSingleDecode, userEventTriggered
Modifier and Type
Method
Description
protected int
Returns the actual number of readable bytes in the internal cumulative
buffer of this decoder.
protected void
Called once data should be decoded from the given ByteBuf.
void
protected void
protected final void
final void
Do nothing by default, sub-classes may override this method.
Returns the internal cumulative buffer of this decoder.
boolean
void
void
void
void
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
BrotliDecoder
public BrotliDecoder()
Creates a new BrotliDecoder with a default 8kB input buffer
-
BrotliDecoder
public BrotliDecoder(int inputBufferSize)
Creates a new BrotliDecoder
- Parameters:
inputBufferSize - desired size of the input buffer in bytes
-
BrotliDecoder
public BrotliDecoder(int inputBufferSize,
int outputBufferSize)
Creates a new BrotliDecoder
- Parameters:
inputBufferSize - desired size of the input buffer in bytes
outputBufferSize - desired max size of the output buffer in bytes
(produce multiple output buffers if exceeded)
-
Method Details
-
newDecoderWithMaxAllocation
public static BrotliDecoder newDecoderWithMaxAllocation(int maxAllocation)
Creates a new BrotliDecoder that use the maxAllocation
semantics: the supplied value bounds the size of the emitted decompressed chunks.
The input buffer size stays at the decoder's default.
- Parameters:
maxAllocation - maximum size, in bytes, of each decompressed output
buffer forwarded downstream; if 0, the
decoder's default output cap is used.
-
-
-
-
-
|