public abstract class ChunkWithChunks extends Chunk
Chunk.TypechunkSize, headerSize, METADATA_SIZE, offset, PAD_BOUNDARY| Modifier | Constructor and Description |
|---|---|
protected |
ChunkWithChunks(java.nio.ByteBuffer buffer,
Chunk parent) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.Integer,Chunk> |
getChunks()
Retrieves the @{code chunks} contained in this chunk.
|
protected void |
init(java.nio.ByteBuffer buffer)
Finishes initialization of a chunk.
|
protected void |
writePayload(java.io.DataOutput output,
java.nio.ByteBuffer header,
boolean shrink)
Writes the chunk payload.
|
getHeaderSize, getOriginalChunkSize, getParent, getType, newInstance, newInstance, toByteArray, toByteArray, writeHeader, writeHeader, writePadprotected ChunkWithChunks(java.nio.ByteBuffer buffer,
@Nullable
Chunk parent)
protected void init(java.nio.ByteBuffer buffer)
Chunkpublic final java.util.Map<java.lang.Integer,Chunk> getChunks()
protected void writePayload(java.io.DataOutput output,
java.nio.ByteBuffer header,
boolean shrink)
throws java.io.IOException
ChunkheaderSize bytes of the chunk.writePayload in class Chunkoutput - The stream that the payload will be written to.header - The already-written header. This can be modified to fix payload offsets.shrink - True if this payload should be optimized for size.java.io.IOException - Thrown if output could not be written to (out of memory).