CatalogResolverImpl.java 文件源码

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

项目:openjdk-jdk10 作者:
@Override
public LSInput resolveResource(String type, String namespaceURI, String publicId, String systemId, String baseURI) {
    InputSource is = resolveEntity(publicId, systemId);

    if (is != null && !is.isEmpty()) {
        return new LSInputImpl(is.getSystemId());
    }

    GroupEntry.ResolveType resolveType = ((CatalogImpl) catalog).getResolve();
    switch (resolveType) {
        case IGNORE:
            return null;
        case STRICT:
            CatalogMessages.reportError(CatalogMessages.ERR_NO_MATCH,
                    new Object[]{publicId, systemId});
    }

    //no action, allow the parser to continue
    return null;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号