jaxp/src/java.xml/share/classes/com/sun/org/apache/xml/internal/resolver/Resolver.java
changeset 26516 8e6a45c22cea
parent 25868 686eef1e7a79
child 41021 444f2b1bcc8c
equal deleted inserted replaced
26257:4ec17c54acb3 26516:8e6a45c22cea
     1 /*
     1 /*
     2  * reserved comment block
     2  * Licensed to the Apache Software Foundation (ASF) under one or more
     3  * DO NOT REMOVE OR ALTER!
     3  * contributor license agreements.  See the NOTICE file distributed with
     4  */
     4  * this work for additional information regarding copyright ownership.
     5 // Resolver.java - Represents an extension of OASIS Open Catalog files.
     5  * The ASF licenses this file to You under the Apache License, Version 2.0
     6 
     6  * (the "License"); you may not use this file except in compliance with
     7 /*
     7  * the License.  You may obtain a copy of the License at
     8  * Copyright 2001-2004 The Apache Software Foundation or its licensors,
       
     9  * as applicable.
       
    10  *
       
    11  * Licensed under the Apache License, Version 2.0 (the "License");
       
    12  * you may not use this file except in compliance with the License.
       
    13  * You may obtain a copy of the License at
       
    14  *
     8  *
    15  *      http://www.apache.org/licenses/LICENSE-2.0
     9  *      http://www.apache.org/licenses/LICENSE-2.0
    16  *
    10  *
    17  * Unless required by applicable law or agreed to in writing, software
    11  * Unless required by applicable law or agreed to in writing, software
    18  * distributed under the License is distributed on an "AS IS" BASIS,
    12  * distributed under the License is distributed on an "AS IS" BASIS,
    92     spf.setNamespaceAware(true);
    86     spf.setNamespaceAware(true);
    93     spf.setValidating(false);
    87     spf.setValidating(false);
    94 
    88 
    95     SAXCatalogReader saxReader = new SAXCatalogReader(spf);
    89     SAXCatalogReader saxReader = new SAXCatalogReader(spf);
    96 
    90 
    97     saxReader.setCatalogParser(null, "XMLCatalog",
    91     saxReader.setCatalogParser(null, "XCatalog",
    98                                "com.sun.org.apache.xml.internal.resolver.readers.XCatalogReader");
    92                                "com.sun.org.apache.xml.internal.resolver.readers.XCatalogReader");
    99 
    93 
   100     saxReader.setCatalogParser(OASISXMLCatalogReader.namespaceName,
    94     saxReader.setCatalogParser(OASISXMLCatalogReader.namespaceName,
   101                                "catalog",
    95                                "catalog",
   102                                "com.sun.org.apache.xml.internal.resolver.readers.ExtendedXMLCatalogReader");
    96                                "com.sun.org.apache.xml.internal.resolver.readers.ExtendedXMLCatalogReader");