|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.groovy.grails.support.encoding.AbstractEncodedAppender
public abstract class AbstractEncodedAppender extends java.lang.Object
Abstract base class for implementations of EncodedAppender interface
Method Summary | |
---|---|
void
|
append(Encoder encoder, char character)
|
void
|
append(Encoder encoder, EncodingState encodingState, char[] b, int off, int len)
|
void
|
append(Encoder encoder, EncodingState encodingState, java.lang.CharSequence str, int off, int len)
|
void
|
append(Encoder encoder, StreamEncodeable streamEncodeable)
|
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
|
appendEncoded(Encoder encoder, EncodingState encodingState, char[] b, int off, int len)
|
void
|
appendEncoded(Encoder encoder, EncodingState encodingState, java.lang.CharSequence str, int off, int len)
|
protected void
|
encodeAndWrite(Encoder encoder, EncodingState newEncodingState, java.lang.CharSequence input)
Encode and write input to buffer using a non-streaming encoder |
void
|
flush()
|
protected boolean
|
shouldEncode(Encoder encoderToApply, EncodingState encodingState)
Check if the encoder should be used to a input with certain encodingState |
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 |
Methods inherited from 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() |
Method Detail |
---|
public void append(Encoder encoder, char character)
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 void appendCharSequence(EncodingState encodingState, java.lang.CharSequence str, int start, int end)
encodingState
- the new encoding state of the CharSequence portionstr
- a CharSequencestart
- the start index, inclusiveend
- the end index, exclusive
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 void encodeAndWrite(Encoder encoder, EncodingState newEncodingState, java.lang.CharSequence input)
encoder
- the encoder to usenewEncodingState
- the new encoding state after encoder has been appliedinput
- the input CharSequence
public void flush()
protected boolean shouldEncode(Encoder encoderToApply, EncodingState encodingState)
encoderToApply
- the encoder to applyencodingState
- the current encoding state
protected void write(EncodingState encodingState, char[] b, int off, int len)
encodingState
- the new encoding state of the char arrayb
- a char arrayoff
- Offset from which to start encoding characterslen
- Number of characters to encode
protected void write(EncodingState encodingState, java.lang.String str, int off, int len)
encodingState
- the new encoding state of the stringstr
- A Stringoff
- Offset from which to start encoding characterslen
- Number of characters to encode
Groovy Documentation