Package org.grails.encoder
Interface StreamEncodeable
- All Known Implementing Classes:
StreamCharBuffer
public interface StreamEncodeable
Marks a class capable of encoding itself with given Encoder to given
EncodedAppender instance
- Since:
- 2.3
-
Method Summary
Modifier and TypeMethodDescriptionvoidencodeTo(EncodedAppender appender, Encoder encoder) Calls the encoder to encode the current content of the StreamEncodable instance (itself) to the EncodedAppender.
-
Method Details
-
encodeTo
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 aStreamingEncoderinstance and takes use of that interface.- Parameters:
appender- the EncodedAppender instanceencoder- the encoder- Throws:
IOException- Signals that an I/O exception has occurred.
-