com.sun.org.apache.xml.internal.resolver.readers.TR9401CatalogReader

Here are the examples of the java api class com.sun.org.apache.xml.internal.resolver.readers.TR9401CatalogReader taken from open source projects.

1. Catalog#setupReaders()

Project: openjdk
Source File: Catalog.java
View license
/**
   * Setup readers.
   */
public void setupReaders() {
    SAXParserFactory spf = catalogManager.useServicesMechanism() ? SAXParserFactory.newInstance() : new SAXParserFactoryImpl();
    spf.setNamespaceAware(true);
    spf.setValidating(false);
    SAXCatalogReader saxReader = new SAXCatalogReader(spf);
    saxReader.setCatalogParser(null, "XMLCatalog", "com.sun.org.apache.xml.internal.resolver.readers.XCatalogReader");
    saxReader.setCatalogParser(OASISXMLCatalogReader.namespaceName, "catalog", "com.sun.org.apache.xml.internal.resolver.readers.OASISXMLCatalogReader");
    addReader("application/xml", saxReader);
    TR9401CatalogReader textReader = new TR9401CatalogReader();
    addReader("text/plain", textReader);
}

2. Resolver#setupReaders()

Project: openjdk
Source File: Resolver.java
View license
/**
   * Setup readers.
   */
public void setupReaders() {
    SAXParserFactory spf = catalogManager.useServicesMechanism() ? SAXParserFactory.newInstance() : new SAXParserFactoryImpl();
    spf.setNamespaceAware(true);
    spf.setValidating(false);
    SAXCatalogReader saxReader = new SAXCatalogReader(spf);
    saxReader.setCatalogParser(null, "XCatalog", "com.sun.org.apache.xml.internal.resolver.readers.XCatalogReader");
    saxReader.setCatalogParser(OASISXMLCatalogReader.namespaceName, "catalog", "com.sun.org.apache.xml.internal.resolver.readers.ExtendedXMLCatalogReader");
    addReader("application/xml", saxReader);
    TR9401CatalogReader textReader = new TR9401CatalogReader();
    addReader("text/plain", textReader);
}