public class EncodedAppenderWriter extends java.io.Writer
A java.io.Writer implementation that writes to a EncodedAppender with a certain encoder This class isn't thread-safe.
Modifiers | Name | Description |
---|---|---|
protected EncodedAppender |
encodedAppender |
|
protected Encoder |
encoder |
|
protected EncodingStateRegistry |
encodingStateRegistry |
Constructor and description |
---|
EncodedAppenderWriter
(EncodedAppender encodedAppender, Encoder encoder, EncodingStateRegistry encodingStateRegistry) Default constructor |
Type | Name and description |
---|---|
java.io.Writer |
append(java.lang.CharSequence csq) |
java.io.Writer |
append(java.lang.CharSequence csq, int start, int end) |
java.io.Writer |
append(char c) |
void |
close() |
void |
flush() |
EncodedAppender |
getEncodedAppender() |
Encoder |
getEncoder() |
java.io.Writer |
getWriterForEncoder(Encoder encoder, EncodingStateRegistry encodingStateRegistry) |
void |
write(char[] cbuf, int off, int len) |
void |
write(int c) |
void |
write(java.lang.String str, int off, int len) |
Methods inherited from class | Name |
---|---|
class java.io.Writer |
java.io.Writer#append(java.lang.CharSequence, int, int), java.io.Writer#append(char), java.io.Writer#append(java.lang.CharSequence), java.io.Writer#append(char), java.io.Writer#append(java.lang.CharSequence, int, int), java.io.Writer#append(java.lang.CharSequence), java.io.Writer#write([C), java.io.Writer#write([C, int, int), java.io.Writer#write(int), java.io.Writer#write(java.lang.String, int, int), java.io.Writer#write(java.lang.String), java.io.Writer#flush(), java.io.Writer#close(), java.io.Writer#wait(long, int), java.io.Writer#wait(long), java.io.Writer#wait(), java.io.Writer#equals(java.lang.Object), java.io.Writer#toString(), java.io.Writer#hashCode(), java.io.Writer#getClass(), java.io.Writer#notify(), java.io.Writer#notifyAll() |
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Default constructor
encodedAppender
- the EncodedAppender destinationencoder
- the encoder to useencodingStateRegistry
- the EncodingStateRegistry to use to lookup encoding
state of CharSequence instances