Package org.grails.encoder
Interface EncodedAppenderWriterFactory
-
- All Known Implementing Classes:
CodecPrintWriter,EncodedAppenderWriter,FastStringWriter,GrailsLazyProxyPrintWriter,GrailsPrintWriter,StreamCharBuffer,StreamCharBuffer.StreamCharBufferWriter
public interface EncodedAppenderWriterFactoryThis interface marks an instance capable of getting aEncodedAppenderWriterinstance that is connected to it with a certain encoder fixed.- Since:
- 2.3
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.io.WritergetWriterForEncoder(Encoder encoder, EncodingStateRegistry encodingStateRegistry)Gets the EncodedAppenderWriter instance that is connected to this instance implementation with a certain encoder fixed.
-
-
-
Method Detail
-
getWriterForEncoder
java.io.Writer getWriterForEncoder(Encoder encoder, EncodingStateRegistry encodingStateRegistry)
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
-
-