public final class StreamCharBuffer.StreamCharBufferWriter extends java.io.Writer implements EncodedAppenderFactory, EncodedAppenderWriterFactory
| Constructor and Description |
|---|
StreamCharBufferWriter() |
| Modifier and Type | Method and Description |
|---|---|
java.io.Writer |
append(java.lang.CharSequence csq) |
java.io.Writer |
append(java.lang.CharSequence csq,
int start,
int end) |
void |
append(EncodingState encodingState,
char character) |
protected void |
appendCharSequence(EncodingState encodingState,
java.lang.CharSequence csq,
int start,
int end) |
void |
close() |
void |
flush() |
StreamCharBuffer |
getBuffer() |
EncodedAppender |
getEncodedAppender()
Gets the EncodedAppender that is connected to the instance of this
implementation.
|
java.io.Writer |
getWriterForEncoder(Encoder encoder,
EncodingStateRegistry encodingStateRegistry)
Gets the EncodedAppenderWriter instance that is connected to this
instance implementation with a certain encoder fixed.
|
boolean |
isClosed() |
boolean |
isUsed() |
void |
markUsed() |
int |
resetUsed() |
void |
write(char[] b,
int off,
int len) |
void |
write(int b) |
void |
write(StreamCharBuffer subBuffer) |
void |
write(StreamCharBuffer subBuffer,
java.util.List<Encoder> encoders) |
void |
write(java.lang.String str) |
void |
write(java.lang.String str,
int off,
int len) |
public final void write(char[] b,
int off,
int len)
throws java.io.IOException
write in class java.io.Writerjava.io.IOExceptionpublic final void write(java.lang.String str)
throws java.io.IOException
write in class java.io.Writerjava.io.IOExceptionpublic final void write(java.lang.String str,
int off,
int len)
throws java.io.IOException
write in class java.io.Writerjava.io.IOExceptionpublic final void write(StreamCharBuffer subBuffer) throws java.io.IOException
java.io.IOExceptionpublic final void write(StreamCharBuffer subBuffer, java.util.List<Encoder> encoders) throws java.io.IOException
java.io.IOExceptionpublic final java.io.Writer append(java.lang.CharSequence csq,
int start,
int end)
throws java.io.IOException
append in interface java.lang.Appendableappend in class java.io.Writerjava.io.IOExceptionprotected void appendCharSequence(EncodingState encodingState, java.lang.CharSequence csq, int start, int end) throws java.io.IOException
java.io.IOExceptionpublic final java.io.Writer append(java.lang.CharSequence csq)
throws java.io.IOException
append in interface java.lang.Appendableappend in class java.io.Writerjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.Writerjava.io.IOExceptionpublic boolean isClosed()
public boolean isUsed()
public final void markUsed()
public int resetUsed()
public void write(int b)
throws java.io.IOException
write in class java.io.Writerjava.io.IOExceptionpublic final StreamCharBuffer getBuffer()
public void append(EncodingState encodingState, char character) throws java.io.IOException
java.io.IOExceptionpublic java.io.Writer getWriterForEncoder(Encoder encoder, EncodingStateRegistry encodingStateRegistry)
EncodedAppenderWriterFactorygetWriterForEncoder in interface EncodedAppenderWriterFactoryencoder - the encoder to useencodingStateRegistry - the current EncodingStateRegistry to usepublic EncodedAppender getEncodedAppender()
EncodedAppenderFactorygetEncodedAppender in interface EncodedAppenderFactorypublic void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.Writerjava.io.IOException