net.dongliu.apk.parser.struct.resource.ResourceTable Maven / Gradle / Ivy
package net.dongliu.apk.parser.struct.resource;
import net.dongliu.apk.parser.struct.StringPool;
import net.dongliu.apk.parser.utils.ResourceLoader;
import java.util.HashMap;
import java.util.Map;
/**
* @author dongliu
*/
public class ResourceTable {
private Map packageMap = new HashMap<>();
private StringPool stringPool;
public static Map sysStyle = ResourceLoader.loadSystemStyles();
public void addPackage(ResourcePackage resourcePackage) {
this.packageMap.put(resourcePackage.getId(), resourcePackage);
}
public ResourcePackage getPackage(short id) {
return this.packageMap.get(id);
}
public StringPool getStringPool() {
return stringPool;
}
public void setStringPool(StringPool stringPool) {
this.stringPool = stringPool;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy