I - the type of the accepted inbound objectsO - the type of the produced outbound objectspublic abstract class CompoundEncoder<I,O> extends Object implements IEncoder<I,O>
| Constructor and Description |
|---|
CompoundEncoder(IEncoder<?,?>... encoders)
Constructs a compound encoder with a chain of the specified encoders.
|
| Modifier and Type | Method and Description |
|---|---|
void |
encode(ISession session,
I data,
List<O> out)
Encodes data from one type to another one.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetInboundType, getOutboundTypepublic CompoundEncoder(IEncoder<?,?>... encoders)
The encoder chain is organized in the following way:
{data} -> encoder1 -> encoder2 -> ... -> encoderN -> {out}
encoders - the chain of encodersIllegalArgumentException - if the specified encoders have incompatible inbound or
outbound typesIllegalStateException - if the param O is VoidCopyright © 2017–2022 SNF4J.ORG. All rights reserved.