I
- the type of the accepted inbound objectsO
- the type of the produced outbound objectspublic abstract class CompoundDecoder<I,O> extends Object implements IDecoder<I,O>
Constructor and Description |
---|
CompoundDecoder(IDecoder<?,?>... decoders)
Constructs a compound decoder with a chain of the specified decoders.
|
Modifier and Type | Method and Description |
---|---|
void |
decode(ISession session,
I data,
List<O> out)
Decodes data from one type to another one.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getInboundType, getOutboundType
public CompoundDecoder(IDecoder<?,?>... decoders)
The decoder chain is organized in the following way:
{data} -> decoder1 -> decoder2 -> ... -> decoderN -> {out}
decoders
- the chain of decodersIllegalArgumentException
- if the specified decoders have incompatible inbound or
outbound typesIllegalStateException
- if the param O is Void
Copyright © 2017–2021 SNF4J.ORG. All rights reserved.