I
- the type of the accepted inbound objectsO
- the type of the produced outbound objects, or Void
if no
output is produced (e.g. a logging codec)public interface IDecoder<I,O> extends ICodec<I,O>
ICodecPipeline
interface.Modifier and Type | Method and Description |
---|---|
void |
decode(ISession session,
I data,
List<O> out)
Decodes data from one type to another one.
|
getInboundType, getOutboundType
void decode(ISession session, I data, List<O> out) throws Exception
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.
Copyright © 2017–2022 SNF4J.ORG. All rights reserved.