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 Type
    Method
    Description
    getWriterForEncoder(Encoder encoder, EncodingStateRegistry encodingStateRegistry)
    Gets the EncodedAppenderWriter instance that is connected to this instance implementation with a certain encoder fixed.
  • Method Details

    • getWriterForEncoder

      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 use
      encodingStateRegistry - the current EncodingStateRegistry to use
      Returns:
      the java.io.Writer instance