public interface ChunkFactory
Modifier and Type | Method and Description |
---|---|
Chunk |
newChunk()
Returns a chunk.
|
Chunk |
newChunk(int size)
Returns a chunk whose associated array of bytes is (at least) of size
size.
|
Chunk newChunk()
Chunk newChunk(int size)
size
- the size of the expected chunk.