Package org.grails.encoder
Class StreamingEncoderWriter
java.lang.Object
java.io.Writer
java.io.FilterWriter
org.grails.encoder.StreamingEncoderWriter
- All Implemented Interfaces:
Closeable,Flushable,Appendable,AutoCloseable,EncodedAppenderFactory,EncoderAware
public class StreamingEncoderWriter
extends FilterWriter
implements EncodedAppenderFactory, EncoderAware
-
Field Summary
Fields inherited from class java.io.FilterWriter
out -
Constructor Summary
ConstructorsConstructorDescriptionStreamingEncoderWriter(Writer out, StreamingEncoder encoder, EncodingStateRegistry encodingStateRegistry) -
Method Summary
Modifier and TypeMethodDescriptionGets the EncodedAppender that is connected to the instance of this implementation.Gets the current encoder in use.protected EncodingStatelookupEncodingState(String str, int off, int len) protected booleanshouldEncodeWith(Encoder encoderToApply, EncodingState encodingState) voidwrite(char[] cbuf, int off, int len) voidwrite(int c) voidMethods inherited from class java.io.FilterWriter
close, flush
-
Constructor Details
-
StreamingEncoderWriter
public StreamingEncoderWriter(Writer out, StreamingEncoder encoder, EncodingStateRegistry encodingStateRegistry)
-
-
Method Details
-
write
- Overrides:
writein classFilterWriter- Throws:
IOException
-
write
- Overrides:
writein classFilterWriter- Throws:
IOException
-
shouldEncodeWith
-
lookupEncodingState
-
write
- Overrides:
writein classFilterWriter- Throws:
IOException
-
getEncodedAppender
Description copied from interface:EncodedAppenderFactoryGets the EncodedAppender that is connected to the instance of this implementation.- Specified by:
getEncodedAppenderin interfaceEncodedAppenderFactory- Returns:
- the EncodedAppender
-
getEncoder
Description copied from interface:EncoderAwareGets the current encoder in use.- Specified by:
getEncoderin interfaceEncoderAware- Returns:
- the encoder
-