public class StreamingEncoderEncodedAppender extends AbstractEncodedAppender
| Constructor and Description |
|---|
StreamingEncoderEncodedAppender(StreamingEncoder encoder,
EncodedAppender target) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendCharSequence(EncodingState encodingState,
java.lang.CharSequence str,
int start,
int end)
Append a portion of a CharSequence to the buffer and attach the
encodingState information to it
|
void |
close() |
void |
flush()
Flush the internal buffer and write the buffered input to a possible
destination.
|
protected void |
write(EncodingState encodingState,
char[] b,
int off,
int len)
Append a portion of a char array to the buffer and attach the
encodingState information to it
|
protected void |
write(EncodingState encodingState,
java.lang.String str,
int off,
int len)
Append a portion of a string to the buffer and attach the encodingState
information to it
|
append, append, append, appendEncoded, appendEncoded, createNewEncodingState, encodeAndWrite, isIgnoreEncodingState, setIgnoreEncodingState, shouldEncode, shouldEncodeWithpublic StreamingEncoderEncodedAppender(StreamingEncoder encoder, EncodedAppender target)
public void close()
throws java.io.IOException
java.io.IOExceptionpublic void flush()
throws java.io.IOException
EncodedAppenderflush in interface EncodedAppenderflush in class AbstractEncodedAppenderjava.io.IOException - Signals that an I/O exception has occurred.protected void write(EncodingState encodingState, char[] b, int off, int len) throws java.io.IOException
AbstractEncodedAppenderwrite in class AbstractEncodedAppenderencodingState - the new encoding state of the char arrayb - a char arrayoff - Offset from which to start encoding characterslen - Number of characters to encodejava.io.IOException - Signals that an I/O exception has occurred.protected void write(EncodingState encodingState, java.lang.String str, int off, int len) throws java.io.IOException
AbstractEncodedAppenderwrite in class AbstractEncodedAppenderencodingState - the new encoding state of the stringstr - A Stringoff - Offset from which to start encoding characterslen - Number of characters to encodejava.io.IOException - Signals that an I/O exception has occurred.protected void appendCharSequence(EncodingState encodingState, java.lang.CharSequence str, int start, int end) throws java.io.IOException
AbstractEncodedAppenderappendCharSequence in class AbstractEncodedAppenderencodingState - the new encoding state of the CharSequence portionstr - a CharSequencestart - the start index, inclusiveend - the end index, exclusivejava.io.IOException - Signals that an I/O exception has occurred.