public class ResTableTypeSpec extends ResChunk
This is then followed by entry_count u32s giving the flags for each resource of this type.
In practice, this is then followed by a ResTableType for each configuration that has resources of this type. For convenience, those are considered to be part of the ResTableTypeSpec.
ResChunk.RefTransformer, ResChunk.RefVisitor
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
Modifier and Type | Method and Description |
---|---|
void |
dump(StringPool strings,
ResTablePackage resPackage,
PrintStream out) |
static ResTableTypeSpec |
get(ByteBuffer buf) |
List<ResTableType> |
getConfigs() |
int |
getEntryCount() |
int |
getResourceType() |
String |
getResourceTypeName(ResTablePackage resPackage) |
int |
getTotalSize()
For most chunk's totalSize == chunkSize.
|
void |
put(ByteBuffer output) |
void |
reassignIds(ReferenceMapper refMapping) |
static ResTableTypeSpec |
slice(ResTableTypeSpec spec,
int count) |
void |
transformKeyReferences(ResChunk.RefTransformer visitor) |
void |
transformStringReferences(ResChunk.RefTransformer visitor) |
void |
visitKeyReferences(ResChunk.RefVisitor visitor) |
void |
visitReferences(int[] ids,
ResChunk.RefVisitor visitor) |
void |
visitStringReferences(int[] ids,
ResChunk.RefVisitor visitor) |
void |
visitStringReferences(ResChunk.RefVisitor visitor) |
getChunkSize, getHeaderSize, getType, serialize, slice, slice, wrap
public static ResTableTypeSpec slice(ResTableTypeSpec spec, int count)
public void put(ByteBuffer output)
public static ResTableTypeSpec get(ByteBuffer buf)
public int getTotalSize()
ResChunk
getTotalSize
in class ResChunk
public String getResourceTypeName(ResTablePackage resPackage)
public void dump(StringPool strings, ResTablePackage resPackage, PrintStream out)
public int getResourceType()
public List<ResTableType> getConfigs()
public void transformKeyReferences(ResChunk.RefTransformer visitor)
public void visitKeyReferences(ResChunk.RefVisitor visitor)
public void transformStringReferences(ResChunk.RefTransformer visitor)
public void visitStringReferences(ResChunk.RefVisitor visitor)
public void visitStringReferences(int[] ids, ResChunk.RefVisitor visitor)
public void visitReferences(int[] ids, ResChunk.RefVisitor visitor)
public void reassignIds(ReferenceMapper refMapping)
public int getEntryCount()