ScriptDocument.java 文件源码

java
阅读 21 收藏 0 点赞 0 评论 0

项目:L2J-Global 作者:
public ScriptDocument(String name, InputStream input)
{
    _name = name;

    final DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    try
    {
        final 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();
        }
        _log.warning(getClass().getSimpleName() + ": " + x.getMessage());
    }
    catch (ParserConfigurationException pce)
    {
        // Parser with specified options can't be built
        _log.log(Level.WARNING, "", pce);

    }
    catch (IOException ioe)
    {
        // I/O error
        _log.log(Level.WARNING, "", ioe);
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号