Package | Description |
---|---|
com.devexperts.io |
Provides input/output utility classes.
|
Modifier and Type | Field and Description |
---|---|
protected Chunk[] |
ChunkList.chunkArray |
Modifier and Type | Method and Description |
---|---|
protected Chunk |
ChunkPool.createNewChunk(Object owner)
Constructs new
Chunk instance for specified owner. |
Chunk |
ChunkList.get(int index)
Returns the chunk located at the specified position of the list.
|
Chunk |
ChunkPool.getChunk(Object owner)
Extracts a
Chunk from the pool (or creates new one if the pool
is empty). |
Chunk |
ChunkList.poll(Object owner)
Retrieves a chunk from the beginning of the list, hands it over to the
owner of this chunk list and returns it.
|
Chunk |
ChunkList.pollLast(Object owner)
Retrieves a chunk from the end of the list, hands it over to the
owner of this chunk list and returns it.
|
static Chunk |
Chunk.wrap(byte[] bytes,
int offset,
int length,
Object owner)
Constructs a new chunk of specified owner that wraps given byte array with
specified range of data and does not correspond to any
pool . |
static Chunk |
Chunk.wrap(byte[] bytes,
Object owner)
Constructs new chunk of specified owner that wraps given byte array
and does not correspond to any
pool . |
Modifier and Type | Method and Description |
---|---|
Iterator<Chunk> |
ChunkList.iterator()
Returns an
iterator over the chunks. |
Modifier and Type | Method and Description |
---|---|
void |
ChunkList.add(Chunk chunk,
Object owner)
Adds given chunk to the end of this chunk list.
|
void |
ChunkedInput.addToInput(Chunk chunk,
Object owner)
Adds specified chunk to the input.
|
protected void |
ChunkPool.recycleChunk(Chunk chunk,
Object owner)
Returns the specified
Chunk into the pool. |
void |
ChunkedOutput.writeFromChunk(Chunk chunk,
Object owner)
Writes data from specified chunk into this buffered output.
|
void |
BufferedOutput.writeFromChunk(Chunk chunk,
Object owner)
Writes data from specified chunk into this buffered output.
|
Copyright © 2002–2025 Devexperts LLC. All rights reserved.