Search in sources :

Example 1 with EncodedAppenderWriter

use of org.grails.encoder.EncodedAppenderWriter in project grails-core by grails.

the class StreamCharBuffer method getWriterForEncoder.

public Writer getWriterForEncoder(Encoder encoder, EncodingStateRegistry encodingStateRegistry, boolean ignoreEncodingState) {
    EncodedAppender encodedAppender = writer.getEncodedAppender();
    encodedAppender.setIgnoreEncodingState(ignoreEncodingState);
    return new EncodedAppenderWriter(encodedAppender, encoder, encodingStateRegistry);
}
Also used : WriterEncodedAppender(org.grails.encoder.WriterEncodedAppender) AbstractEncodedAppender(org.grails.encoder.AbstractEncodedAppender) EncodedAppender(org.grails.encoder.EncodedAppender) EncodedAppenderWriter(org.grails.encoder.EncodedAppenderWriter)

Aggregations

AbstractEncodedAppender (org.grails.encoder.AbstractEncodedAppender)1 EncodedAppender (org.grails.encoder.EncodedAppender)1 EncodedAppenderWriter (org.grails.encoder.EncodedAppenderWriter)1 WriterEncodedAppender (org.grails.encoder.WriterEncodedAppender)1