创建Configuration及单例模式-创新互联
创建XPath对象:
XPathFactory factory = XPathFactory.newInstance(); this.xpath = factory.newXPath();
创建Document对象:(DOM解析)
//JDK提供的文档解析工厂对象DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
//创建一个DocumentBuilder对象DocumentBuilder builder = factory.newDocumentBuilder();
//解析输入源的xml数据为一个Document文件return builder.parse(inputSource);
创建Configuration对象
new Configuration()
注册类型别名
初始化Configuration对象的一些成员变量的默认值
你是否还在寻找稳定的海外服务器提供商?创新互联www.cdcxhl.cn海外机房具备T级流量清洗系统配攻击溯源,准确流量调度确保服务器高可用性,企业级服务器适合批量采购,新人活动首月15元起,快前往官网查看详情吧
文章名称:创建Configuration及单例模式-创新互联
标题网址:http://myzitong.com/article/dseogh.html