Descriptor.java 文件源码

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

项目:switchyard 作者:
public LSInput resolveResource(String type, String namespaceURI, String publicId, String systemId, String baseURI) {
    String schemaLocation = _descriptor.getSchemaLocation(namespaceURI, systemId);
    if (schemaLocation == null && baseURI != null && baseURI.endsWith(".dtd")) {
        String schema = baseURI.substring(0, baseURI.lastIndexOf('/')+1) + systemId;
        schemaLocation = _descriptor.getSchemaLocation(null, schema);
    }
    if (schemaLocation != null) {
        try {
            String xsd = new StringPuller().pull(schemaLocation, getClass());
            if (xsd != null) {
                return new DescriptorLSInput(xsd, publicId, systemId, baseURI);
            }
        } catch (IOException ioe) {
            throw new RuntimeException(ioe);
        }
    }
    return null;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号