public final class SimpleChunkFactory extends Object implements ChunkFactory
Modifier and Type | Method and Description |
---|---|
Chunk |
newChunk()
Returns a chunk of a default size.
|
Chunk |
newChunk(int size)
Returns a chunk of (at least) the specified size.
|
public Chunk newChunk()
newChunk
in interface ChunkFactory
public Chunk newChunk(int size)
newChunk
in interface ChunkFactory
size
- the expected size of the chunk.