Constructor and Description |
---|
PerMessageDeflateDecoder(boolean noContext)
Constructs a per-message deflate decoder with specified context takeover
control.
|
PerMessageDeflateDecoder(boolean noContext,
int minInflateBound)
Constructs a per-message deflate decoder with specified context takeover
control and minimum upper bound on the decompressed size.
|
Modifier and Type | Method and Description |
---|---|
void |
added(ISession session,
ICodecPipeline pipeline)
Signals that the codec has been added to the pipeline associated with a
session.
|
void |
decode(ISession session,
Frame frame,
List<Frame> out)
Decodes data from one type to another one.
|
void |
event(ISession session,
SessionEvent event)
Signals a session event to the codec.
|
Class<Frame> |
getInboundType()
Returns the type of the accepted inbound objects.
|
Class<Frame> |
getOutboundType()
Returns the type of the produced outbound objects.
|
void |
removed(ISession session,
ICodecPipeline pipeline)
Signals that the codec has been removed from the pipeline associated with a
session.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getInboundType, getOutboundType
added, event, removed
public PerMessageDeflateDecoder(boolean noContext, int minInflateBound)
noContext
- true
to prevent from using the context
takeoverminInflateBound
- determines the minimum upper bound on the decompressed
size. Setting this parameter to proper value may speed
up the decompression of highly compressed data.public PerMessageDeflateDecoder(boolean noContext)
noContext
- true
to prevent from using the context
takeoverpublic void decode(ISession session, Frame frame, List<Frame> out) throws Exception
IDecoder
Decoders that do not produce an output (i.e. the O parameter is
Void
) cannot change the object passed as the data
argument. They should not also store it for future use as its state can
be changed.
The above limitations regarding the data
argument do not apply to
decoders that produce an output.
public Class<Frame> getInboundType()
ICodec
getInboundType
in interface ICodec<Frame,Frame>
public Class<Frame> getOutboundType()
ICodec
getOutboundType
in interface ICodec<Frame,Frame>
public void added(ISession session, ICodecPipeline pipeline)
IEventDrivenCodec
added
in interface IEventDrivenCodec
session
- the session the pipeline is associated withpipeline
- the pipeline the codec has been added topublic void event(ISession session, SessionEvent event)
IEventDrivenCodec
event
in interface IEventDrivenCodec
session
- the session which state is changingevent
- the session eventpublic void removed(ISession session, ICodecPipeline pipeline)
IEventDrivenCodec
removed
in interface IEventDrivenCodec
session
- the session the pipeline is associated withpipeline
- the pipeline the codec has been removed fromCopyright © 2017–2022 SNF4J.ORG. All rights reserved.