public class PackageResourceTable extends Object implements ResourceTable
A ResourceTable
for a single package, e.g: “android” / ox01
ResourceTable.Visitor
Constructor and Description |
---|
PackageResourceTable(String packageName) |
Modifier and Type | Method and Description |
---|---|
String |
getPackageName() |
InputStream |
getRawValue(int resId,
ResTable_config config) |
InputStream |
getRawValue(ResName resName,
ResTable_config config) |
ResName |
getResName(int resourceId) |
Integer |
getResourceId(ResName resName) |
TypedResource |
getValue(int resId,
ResTable_config config) |
TypedResource |
getValue(ResName resName,
ResTable_config config) |
XmlBlock |
getXml(ResName resName,
ResTable_config config) |
void |
receive(ResourceTable.Visitor visitor) |
public PackageResourceTable(String packageName)
public String getPackageName()
getPackageName
in interface ResourceTable
public Integer getResourceId(ResName resName)
getResourceId
in interface ResourceTable
public ResName getResName(int resourceId)
getResName
in interface ResourceTable
public TypedResource getValue(@Nonnull ResName resName, ResTable_config config)
getValue
in interface ResourceTable
public TypedResource getValue(int resId, ResTable_config config)
getValue
in interface ResourceTable
public XmlBlock getXml(ResName resName, ResTable_config config)
getXml
in interface ResourceTable
public InputStream getRawValue(ResName resName, ResTable_config config)
getRawValue
in interface ResourceTable
public InputStream getRawValue(int resId, ResTable_config config)
getRawValue
in interface ResourceTable
public void receive(ResourceTable.Visitor visitor)
receive
in interface ResourceTable