org.objectweb.jonathan.resources.api
Interface ChunkFactory
- JChunkFactory, SimpleChunkFactory
public interface ChunkFactory
A chunk factory builds chunks, possibly implementing a specific chunk
management policy.
Chunk | newChunk() - Returns a chunk.
|
Chunk | newChunk(int size) - Returns a chunk whose associated array of bytes is (at least) of size
size.
|
newChunk
public Chunk newChunk()
Returns a chunk. The offset and top of this chunk are 0.
- a chunk.
newChunk
public Chunk newChunk(int size)
Returns a chunk whose associated array of bytes is (at least) of size
size. Its offset and top are always 0.
size
- the size of the expected chunk.
- a chunk.