Package org.grails.encoder
Interface EncodedAppenderWriterFactory
- All Known Implementing Classes:
CodecPrintWriter,EncodedAppenderWriter,FastStringWriter,GrailsLazyProxyPrintWriter,GrailsPrintWriter,StreamCharBuffer,StreamCharBuffer.StreamCharBufferWriter
public interface EncodedAppenderWriterFactory
This interface marks an instance capable of getting a
EncodedAppenderWriter instance that is connected to it with a certain
encoder fixed.- Since:
- 2.3
-
Method Summary
Modifier and TypeMethodDescriptiongetWriterForEncoder(Encoder encoder, EncodingStateRegistry encodingStateRegistry) Gets the EncodedAppenderWriter instance that is connected to this instance implementation with a certain encoder fixed.
-
Method Details
-
getWriterForEncoder
Gets the EncodedAppenderWriter instance that is connected to this instance implementation with a certain encoder fixed.- Parameters:
encoder- the encoder to useencodingStateRegistry- the current EncodingStateRegistry to use- Returns:
- the java.io.Writer instance
-