concept encoder in category ejb

appears as: encoders
EJB 3 in Action, Second Edition

This is an excerpt from Manning's book EJB 3 in Action, Second Edition.

Encoders are similar to decoders. The interface and subinterfaces are defined in javax.websocket.Endcoder. The only difference is that the methods are named encode and the return type and method parameters are swapped. The CommandMessage encoder is shown in the following listing.