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