public class XmlResourceMapChunk extends Chunk
This chunk maps attribute ids to the resource ids of the attribute resource that defines the attribute (e.g. type, enum values, etc.).
Chunk.TypechunkSize, headerSize, METADATA_SIZE, offset, PAD_BOUNDARY| Modifier | Constructor and Description |
|---|---|
protected |
XmlResourceMapChunk(java.nio.ByteBuffer buffer,
Chunk parent) |
| Modifier and Type | Method and Description |
|---|---|
BinaryResourceIdentifier |
getResourceId(int attributeId)
Returns the resource ID that this
attributeId maps to. |
protected Chunk.Type |
getType() |
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, newInstance, newInstance, toByteArray, toByteArray, writeHeader, writeHeader, writePadprotected XmlResourceMapChunk(java.nio.ByteBuffer buffer,
@Nullable
Chunk parent)
protected void init(java.nio.ByteBuffer buffer)
Chunkpublic BinaryResourceIdentifier getResourceId(int attributeId)
attributeId maps to.protected Chunk.Type getType()
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).