Package com.helger.base.codec
Interface IEncoder<SRCTYPE,DSTTYPE>
- Type Parameters:
SRCTYPE- Source data typeDSTTYPE- Destination data type
- All Known Subinterfaces:
IByteArrayCodec,IByteArrayEncoder,IByteArrayStreamEncoder,ICharArrayCodec,ICharArrayEncoder,ICharArrayStreamEncoder,ICodec<DATATYPE>
- All Known Implementing Classes:
AbstractRFC1522Codec,Base16Codec,Base32Codec,Base64Codec,FlateCodec,GZIPCodec,IdentityByteArrayCodec,IdentityCodec,LZWCodec,QuotedPrintableCodec,RFC1522BCodec,RFC1522QCodec,RFC2616Codec,RFC3986Codec,RFC5987Codec
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
The most basic encoding interface
- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescription@Nullable DSTTYPEgetEncoded(@Nullable SRCTYPE aInput) Encode the passed source object
-
Method Details
-
getEncoded
Encode the passed source object- Parameters:
aInput- The source object to be encoded- Returns:
- The encoded value.
- Throws:
EncodeException- In case something goes wrong
-