public abstract class AbstractEncodedAppender extends java.lang.Object implements EncodedAppender
Abstract base class for implementations of EncodedAppender interface
Modifiers | Name | Description |
---|---|---|
private boolean |
ignoreEncodingState |
Type Params | Return Type | Name and description |
---|---|---|
|
public void |
append(Encoder encoder, EncodingState encodingState, char[] b, int off, int len) |
|
public void |
append(Encoder encoder, EncodingState encodingState, java.lang.CharSequence str, int off, int len) |
|
public void |
append(Encoder encoder, StreamEncodeable streamEncodeable) |
|
protected abstract 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 |
|
public void |
appendEncoded(Encoder encoder, EncodingState encodingState, char[] b, int off, int len) |
|
public void |
appendEncoded(Encoder encoder, EncodingState encodingState, java.lang.CharSequence str, int off, int len) |
|
protected EncodingState |
createNewEncodingState(Encoder encoder, EncodingState encodingState) |
|
protected void |
encodeAndWrite(Encoder encoder, EncodingState newEncodingState, java.lang.CharSequence input) Encode and write input to buffer using a non-streaming encoder |
|
public void |
flush() |
|
public boolean |
isIgnoreEncodingState() |
|
public void |
setIgnoreEncodingState(boolean ignoreEncodingState) |
|
public boolean |
shouldEncode(Encoder encoderToApply, EncodingState encodingState) Check if the encoder should be used to a input with certain encodingState |
|
protected boolean |
shouldEncodeWith(Encoder encoderToApply, EncodingState encodingState) |
|
protected abstract 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 abstract 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 |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), 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() |
Append a portion of a CharSequence to the buffer and attach the encodingState information to it
encodingState
- the new encoding state of the CharSequence portionstr
- a CharSequencestart
- the start index, inclusiveend
- the end index, exclusiveEncode and write input to buffer using a non-streaming encoder
encoder
- the encoder to usenewEncodingState
- the new encoding state after encoder has been appliedinput
- the input CharSequenceCheck if the encoder should be used to a input with certain encodingState
encoderToApply
- the encoder to applyencodingState
- the current encoding stateAppend a portion of a char array to the buffer and attach the encodingState information to it
encodingState
- the new encoding state of the char arrayb
- a char arrayoff
- Offset from which to start encoding characterslen
- Number of characters to encodeAppend a portion of a string to the buffer and attach the encodingState information to it
encodingState
- the new encoding state of the stringstr
- A Stringoff
- Offset from which to start encoding characterslen
- Number of characters to encode