|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
public interface EncodedAppender
This is the input interface to the streaming encoding solution. Methods in this interface encode the given input and append it to the internal buffer
Method Summary | |
---|---|
void
|
append(Encoder encoder, EncodingState encodingState, java.lang.CharSequence str, int off, int len)
Encodes a portion of a string and appends it to the buffer. |
void
|
append(Encoder encoder, EncodingState encodingState, char[] b, int off, int len)
Encodes a portion of a char array and appends it to the buffer. |
void
|
append(Encoder encoder, StreamEncodeable streamEncodeable)
Encodes a StreamEncodeable instance and appends it to the buffer. |
void
|
append(Encoder encoder, char ch)
Encodes a single char and appends it to the buffer. |
void
|
appendEncoded(Encoder encoder, EncodingState encodingState, java.lang.CharSequence str, int off, int len)
Appends an encoded portion of a string to the buffer |
void
|
appendEncoded(Encoder encoder, EncodingState encodingState, char[] b, int off, int len)
Appends an encoded portion of a char array to the buffer. |
void
|
close()
|
void
|
flush()
Flush the internal buffer and write the buffered input to a possible destination. |
Method Detail |
---|
public void append(Encoder encoder, EncodingState encodingState, java.lang.CharSequence str, int off, int len)
encoder
- the encoder to useencodingState
- the current encoding state of the stringstr
- A Stringoff
- Offset from which to start encoding characterslen
- Number of characters to encode
public void append(Encoder encoder, EncodingState encodingState, char[] b, int off, int len)
encoder
- the encoder to useencodingState
- the current encoding state of the stringb
- a char arrayoff
- Offset from which to start encoding characterslen
- Number of characters to encode
public void append(Encoder encoder, StreamEncodeable streamEncodeable)
encoder
- the encoder to usestreamEncodeable
- the instance to encode
public void append(Encoder encoder, char ch)
encoder
- the encoder to usech
- a char
public void appendEncoded(Encoder encoder, EncodingState encodingState, java.lang.CharSequence str, int off, int len)
encoder
- the encoder that has been appliedencodingState
- the previous encoding state of the stringstr
- A Stringoff
- Offset from which to start encoding characterslen
- Number of characters to encode
public void appendEncoded(Encoder encoder, EncodingState encodingState, char[] b, int off, int len)
encoder
- the encoder that has been appliedencodingState
- the previous encoding state of the char arrayb
- a char arrayoff
- Offset from which to start encoding characterslen
- Number of characters to encode
public void close()
public void flush()
Groovy Documentation