public final class ResourceTableChunk extends ChunkWithChunks
StringPoolChunk containing all string values in the entire resource table. It does
not, however, contain the names of entries or type identifiers.
PackageChunk.
Chunk.TypechunkSize, headerSize, METADATA_SIZE, offset, PAD_BOUNDARY| Modifier | Constructor and Description |
|---|---|
protected |
ResourceTableChunk(java.nio.ByteBuffer buffer,
Chunk parent) |
| Modifier and Type | Method and Description |
|---|---|
PackageChunk |
getPackage(java.lang.String packageName)
Returns the package with the given
packageName. |
java.util.Collection<PackageChunk> |
getPackages()
Returns the packages contained in this resource table.
|
StringPoolChunk |
getStringPool()
Returns the string pool containing all string resource values in the resource table.
|
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). |
getChunks, writePayloadgetHeaderSize, getOriginalChunkSize, getParent, newInstance, newInstance, toByteArray, toByteArray, writeHeader, writePadprotected ResourceTableChunk(java.nio.ByteBuffer buffer,
@Nullable
Chunk parent)
protected void init(java.nio.ByteBuffer buffer)
Chunkinit in class ChunkWithChunksbuffer - The buffer that the payload will be initialized from.public StringPoolChunk getStringPool()
@Nullable public PackageChunk getPackage(java.lang.String packageName)
packageName. Else, returns null.public java.util.Collection<PackageChunk> getPackages()
protected 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.