public final class LibraryChunk extends Chunk
ResourceTableChunk. The package-id's encoded in this resource table may be different
than the id's assigned at runtime| Modifier and Type | Class and Description |
|---|---|
protected static class |
LibraryChunk.Entry
A shared library package-id to package name entry.
|
Chunk.TypechunkSize, headerSize, METADATA_SIZE, offset, PAD_BOUNDARY| Modifier | Constructor and Description |
|---|---|
protected |
LibraryChunk(java.nio.ByteBuffer buffer,
Chunk parent) |
| Modifier and Type | Method and Description |
|---|---|
protected Chunk.Type |
getType() |
protected void |
init(java.nio.ByteBuffer buffer)
Finishes initialization of a chunk.
|
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, newInstance, newInstance, toByteArray, toByteArray, writeHeader, writePadprotected LibraryChunk(java.nio.ByteBuffer buffer,
@Nullable
Chunk parent)
protected void init(java.nio.ByteBuffer buffer)
Chunkprotected Chunk.Type getType()
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).