public final class UnknownChunk extends Chunk
Chunk.TypechunkSize, headerSize, METADATA_SIZE, offset, PAD_BOUNDARY| Modifier | Constructor and Description |
|---|---|
protected |
UnknownChunk(java.nio.ByteBuffer buffer,
Chunk parent) |
| Modifier and Type | Method and Description |
|---|---|
protected Chunk.Type |
getType() |
protected void |
writeHeader(java.nio.ByteBuffer output)
Writes the remaining header (after the type,
headerSize, and chunkSize). |
protected void |
writePayload(java.io.DataOutput output,
java.nio.ByteBuffer header,
boolean shrink)
Writes the chunk payload.
|
getHeaderSize, getOriginalChunkSize, getParent, init, newInstance, newInstance, toByteArray, toByteArray, writeHeader, writePadprotected UnknownChunk(java.nio.ByteBuffer buffer,
@Nullable
Chunk parent)
protected void writeHeader(java.nio.ByteBuffer output)
ChunkheaderSize, and chunkSize).writeHeader in class Chunkoutput - The buffer that the header will be written to.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).protected Chunk.Type getType()