E
- Type of the element to encode.C
- Type of the coding format.public interface Codec<E,C> extends Decoder<E,C>
Modifier and Type | Method and Description |
---|---|
C |
encode(E entity)
Encodes the given entity.
|
C encode(E entity) throws IllegalArgumentException
entity
- Entity to encode.entity
.IllegalArgumentException
- IllegalArgumentException If
entity
is not recognized and cannot be encoded.Copyright © 2016. All Rights Reserved.