Package org.apache.xml.resolver.tools

Examples of org.apache.xml.resolver.tools.CatalogResolver.resolveEntity()


    public static XMLResolver getXMLResolver(final String[] catalogs) {
        final CatalogResolver catalogResolver = XMLUtil.getEntityResolver(catalogs);
        final XMLResolver resolver = new XMLResolver() {
            public Object resolveEntity(final String publicID, final String systemID, final String baseURI,
                    final String namespace) throws XMLStreamException {
                final InputSource inputSource = catalogResolver.resolveEntity(publicID, systemID);
                return inputSource.getByteStream();
            }
        };
        return resolver;
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.