public ScriptDocument(String name, InputStream input)
{
_name = name;
DocumentBuilderFactory factory =
DocumentBuilderFactory.newInstance();
try {
DocumentBuilder builder = factory.newDocumentBuilder();
_document = builder.parse( input );
} catch (SAXException sxe) {
// Error generated during parsing)
Exception x = sxe;
if (sxe.getException() != null)
x = sxe.getException();
x.printStackTrace();
} catch (ParserConfigurationException pce) {
// Parser with specified options can't be built
pce.printStackTrace();
} catch (IOException ioe) {
// I/O error
ioe.printStackTrace();
}
}
ScriptDocument.java 文件源码
java
阅读 33
收藏 0
点赞 0
评论 0
项目:L2jBrasil
作者:
评论列表
文章目录