public interface StreamEncodeable
Marks a class capable of encoding itself with given Encoder to given EncodedAppender instance
Type Params | Return Type | Name and description |
---|---|---|
|
public void |
encodeTo(EncodedAppender appender, Encoder encoder) Calls the encoder to encode the current content of the StreamEncodable instance (itself) to the EncodedAppender. |
Calls the encoder to encode the current content of the StreamEncodable instance (itself) to the EncodedAppender. It is recommended that the implementation checks if Encoder is a StreamingEncoder instance and takes use of that interface.
appender
- the EncodedAppender instanceencoder
- the encoder