20 import java.io.IOException; 21 import java.io.InputStream; 22 import java.io.FileNotFoundException; 23 import java.util.Enumeration; 24 import java.util.Vector; 25 import java.net.URL; 26 import java.net.URLConnection; 27 import java.net.MalformedURLException; 28 import javax.xml.parsers.SAXParserFactory; 29 import com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl; 30 import com.sun.org.apache.xerces.internal.utils.SecuritySupport; 31 import com.sun.org.apache.xml.internal.resolver.readers.SAXCatalogReader; 32 import com.sun.org.apache.xml.internal.resolver.readers.OASISXMLCatalogReader; 33 import com.sun.org.apache.xml.internal.resolver.readers.TR9401CatalogReader; 34 35 /** 36 * An extension to OASIS Open Catalog files, this class supports 37 * suffix-based matching and an external RFC2483 resolver. 38 * 39 * @see Catalog 40 * 41 * @author Norman Walsh 42 * <a href="mailto:Norman.Walsh@Sun.COM">Norman.Walsh@Sun.COM</a> 43 * 44 * @version 1.0 45 */ 46 public class Resolver extends Catalog { 47 /** 48 * The URISUFFIX Catalog Entry type. 49 * 50 * <p>URI suffix entries match URIs that end in a specified suffix.</p> 51 */ 52 public static final int URISUFFIX = CatalogEntry.addEntryType("URISUFFIX", 2); 53 54 /** 55 * The SYSTEMSUFFIX Catalog Entry type. 56 * 57 * <p>System suffix entries match system identifiers that end in a 58 * specified suffix.</p> 59 */ 60 public static final int SYSTEMSUFFIX = CatalogEntry.addEntryType("SYSTEMSUFFIX", 2); 61 62 /** 63 * The RESOLVER Catalog Entry type. 64 * 65 * <p>A hook for providing support for web-based backup resolvers.</p> | 20 import java.io.IOException; 21 import java.io.InputStream; 22 import java.io.FileNotFoundException; 23 import java.util.Enumeration; 24 import java.util.Vector; 25 import java.net.URL; 26 import java.net.URLConnection; 27 import java.net.MalformedURLException; 28 import javax.xml.parsers.SAXParserFactory; 29 import com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl; 30 import com.sun.org.apache.xerces.internal.utils.SecuritySupport; 31 import com.sun.org.apache.xml.internal.resolver.readers.SAXCatalogReader; 32 import com.sun.org.apache.xml.internal.resolver.readers.OASISXMLCatalogReader; 33 import com.sun.org.apache.xml.internal.resolver.readers.TR9401CatalogReader; 34 35 /** 36 * An extension to OASIS Open Catalog files, this class supports 37 * suffix-based matching and an external RFC2483 resolver. 38 * 39 * @see Catalog 40 * @deprecated The JDK internal Catalog API in package 41 * {@code com.sun.org.apache.xml.internal.resolver} 42 * is encapsulated in JDK 9. The entire implementation under the package is now 43 * deprecated and subject to removal in a future release. Users of the API 44 * should migrate to the {@linkplain javax.xml.catalog new public API}. 45 * <p> 46 * The new Catalog API is supported throughout the JDK XML Processors, which allows 47 * the use of Catalog by simply setting a path to a Catalog file as a property. 48 * 49 * @author Norman Walsh 50 * <a href="mailto:Norman.Walsh@Sun.COM">Norman.Walsh@Sun.COM</a> 51 * 52 * @version 1.0 53 */ 54 @Deprecated(since="9", forRemoval=true) 55 public class Resolver extends Catalog { 56 /** 57 * The URISUFFIX Catalog Entry type. 58 * 59 * <p>URI suffix entries match URIs that end in a specified suffix.</p> 60 */ 61 public static final int URISUFFIX = CatalogEntry.addEntryType("URISUFFIX", 2); 62 63 /** 64 * The SYSTEMSUFFIX Catalog Entry type. 65 * 66 * <p>System suffix entries match system identifiers that end in a 67 * specified suffix.</p> 68 */ 69 public static final int SYSTEMSUFFIX = CatalogEntry.addEntryType("SYSTEMSUFFIX", 2); 70 71 /** 72 * The RESOLVER Catalog Entry type. 73 * 74 * <p>A hook for providing support for web-based backup resolvers.</p> |