public class ResourceTable extends ResChunk
The header is followed by a StringPool and then package_count packages.
In practice, aapt always generates .arsc files with package_count == 1.
ResChunk.RefTransformer, ResChunk.RefVisitor
Modifier and Type | Field and Description |
---|---|
static int |
HEADER_SIZE |
CHUNK_RES_TABLE_PACKAGE, CHUNK_RES_TABLE_TYPE, CHUNK_RES_TABLE_TYPE_SPEC, CHUNK_RESOURCE_TABLE, CHUNK_STRING_POOL, CHUNK_XML_REF_MAP, CHUNK_XML_TREE
Constructor and Description |
---|
ResourceTable(StringPool strings,
ResTablePackage resPackage) |
Modifier and Type | Method and Description |
---|---|
void |
dump(PrintStream out) |
void |
dumpStrings(PrintStream out) |
static ResourceTable |
get(ByteBuffer buf) |
ResTablePackage |
getPackage() |
StringPool |
getStrings() |
void |
put(ByteBuffer buf) |
void |
reassignIds(ReferenceMapper refMapping) |
static ResourceTable |
slice(ResourceTable table,
Map<Integer,Integer> countsToExtract) |
getChunkSize, getHeaderSize, getTotalSize, getType, serialize, slice, slice, wrap
public static final int HEADER_SIZE
public ResourceTable(StringPool strings, ResTablePackage resPackage)
public static ResourceTable get(ByteBuffer buf)
public void put(ByteBuffer buf)
public void reassignIds(ReferenceMapper refMapping)
public static ResourceTable slice(ResourceTable table, Map<Integer,Integer> countsToExtract)
public void dump(PrintStream out)
public StringPool getStrings()
public ResTablePackage getPackage()
public void dumpStrings(PrintStream out)