import java.util.HashMap;
import javax.xml.parsers.SAXParser;
import javax.xml.parsers.SAXParserFactory;
import org.xml.sax.Attributes;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.DefaultHandler;
import android.text.TextUtils;
/**
-
配置文件控制器 用于获取配置文件
-
@author wwj
*/
public class ConfigController {
private static ConfigController instance;
public static ConfigController getInstance() {
if (instance == null) {
synchronized (ConfigController.class) {
if (instance == null) {
instance = new ConfigController();
}
}
}
return instance;
}
public ConfigController() {
InputStream input = getClass().getResourceAsStream(
“/res/raw/config.xml”);
try { <