public class EncodedAppenderWriter extends java.io.Writer implements EncodedAppenderFactory, EncodedAppenderWriterFactory, EncoderAware
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 Params | Return Type | Name and description |
---|---|---|
|
public java.io.Writer |
append(java.lang.CharSequence csq) |
|
public java.io.Writer |
append(java.lang.CharSequence csq, int start, int end) |
|
public java.io.Writer |
append(char c) |
|
public void |
close() |
|
public void |
flush() |
|
public EncodedAppender |
getEncodedAppender() |
|
public Encoder |
getEncoder() |
|
public java.io.Writer |
getWriterForEncoder(Encoder encoder, EncodingStateRegistry encodingStateRegistry) |
|
public void |
write(char[] cbuf, int off, int len) |
|
public void |
write(int c) |
|
public 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(java.lang.CharSequence, int, int), java.io.Writer#append(char), java.io.Writer#append(char), java.io.Writer#append(java.lang.CharSequence), java.io.Writer#append(java.lang.CharSequence), java.io.Writer#write(int), java.io.Writer#write([C), java.io.Writer#write([C, int, int), java.io.Writer#write(java.lang.String), java.io.Writer#write(java.lang.String, int, int), java.io.Writer#flush(), java.io.Writer#close(), java.io.Writer#nullWriter(), java.io.Writer#wait(long), java.io.Writer#wait(long, int), 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() |
Default constructor
encodedAppender
- the EncodedAppender destinationencoder
- the encoder to useencodingStateRegistry
- the EncodingStateRegistry to use to lookup encoding
state of CharSequence instances