class StreamCharBuffer.StringChunk extends AbstractChunk
StringChunk is a wrapper for java.lang.String. It also keeps state of the read offset and the number of unread characters. There's methods that StringChunkGroup uses for reading data.
Modifiers | Name | Description |
---|---|---|
int |
lastposition |
|
int |
length |
|
int |
offset |
|
java.lang.String |
str |
Constructor and description |
---|
StringChunk
(java.lang.String str, int offset, int length) |
Type Params | Return Type | Name and description |
---|---|---|
|
public void |
encodeTo(EncodedAppender appender, Encoder encoder) |
|
public void |
encodeTo(java.io.Writer writer, EncodesToWriter encoder) |
|
public ChunkReader |
getChunkReader(boolean removeAfterReading) |
|
public boolean |
isSingleBuffer() |
|
public int |
size() |
|
public java.lang.CharSequence |
toCharSequence() |
|
public void |
writeTo(java.io.Writer target) |