class StreamCharBuffer.CharBufferChunk extends AbstractChunk
The data in the buffer is stored in a linked list of StreamCharBufferChunks. This class contains data & read/write state for the "chunk level". It contains methods for reading & writing to the chunk level. Underneath the chunk is one more level, the StringChunkGroup + StringChunk. StringChunk makes it possible to directly store the java.lang.String objects.
| Modifiers | Name | Description |
|---|---|---|
int |
allocatedBufferId |
|
char[] |
buffer |
|
int |
lastposition |
|
int |
length |
|
int |
offset |
| Constructor and description |
|---|
CharBufferChunk
(int allocatedBufferId, char[] buffer, int offset, int len) |
| 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 void |
writeTo(java.io.Writer target) |