Package org.grails.encoder
Interface StreamEncodeable
-
- All Known Implementing Classes:
StreamCharBuffer
public interface StreamEncodeableMarks a class capable of encoding itself with given Encoder to given EncodedAppender instance- Since:
- 2.3
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidencodeTo(EncodedAppender appender, Encoder encoder)Calls the encoder to encode the current content of the StreamEncodable instance (itself) to the EncodedAppender.
-
-
-
Method Detail
-
encodeTo
void encodeTo(EncodedAppender appender, Encoder encoder) throws java.io.IOException
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:
java.io.IOException- Signals that an I/O exception has occurred.
-
-