Package gov.nasa.pds.tools.label
Class BootstrapResolver
- java.lang.Object
-
- org.apache.xml.resolver.helpers.BootstrapResolver
-
- gov.nasa.pds.tools.label.BootstrapResolver
-
- All Implemented Interfaces:
URIResolver,EntityResolver
public class BootstrapResolver extends org.apache.xml.resolver.helpers.BootstrapResolver- Author:
- pramirez
-
-
Field Summary
Fields Modifier and Type Field Description static StringxCatalogPubIdPublic identifier for legacy Apache XCatalog files.static StringxmlCatalog11PubIdPublic identifier for OASIS XML Catalog 1.1 files.static StringxmlCatalog11SysIdSystem identifier for OASIS XML Catalog 1.1 files.static StringxmlCatalogPubIdPublic identifier for OASIS XML Catalog files.static StringxmlCatalogRNGURI of the RELAX NG Grammar for OASIS XML Catalog files.static StringxmlCatalogSysIdSystem identifier for OASIS XML Catalog files.static StringxmlCatalogXSDURI of the W3C XML Schema for OASIS XML Catalog files.
-
Constructor Summary
Constructors Constructor Description BootstrapResolver()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static URLmakeURL(String pathname)Sourceresolve(String href, String base)Transformer resolve API.InputSourceresolveEntity(String publicId, String systemId)SAX resolveEntity API.
-
-
-
Field Detail
-
xmlCatalogXSD
public static final String xmlCatalogXSD
URI of the W3C XML Schema for OASIS XML Catalog files.- See Also:
- Constant Field Values
-
xmlCatalogRNG
public static final String xmlCatalogRNG
URI of the RELAX NG Grammar for OASIS XML Catalog files.- See Also:
- Constant Field Values
-
xmlCatalogPubId
public static final String xmlCatalogPubId
Public identifier for OASIS XML Catalog files.- See Also:
- Constant Field Values
-
xmlCatalogSysId
public static final String xmlCatalogSysId
System identifier for OASIS XML Catalog files.- See Also:
- Constant Field Values
-
xmlCatalog11PubId
public static final String xmlCatalog11PubId
Public identifier for OASIS XML Catalog 1.1 files.- See Also:
- Constant Field Values
-
xmlCatalog11SysId
public static final String xmlCatalog11SysId
System identifier for OASIS XML Catalog 1.1 files.- See Also:
- Constant Field Values
-
xCatalogPubId
public static final String xCatalogPubId
Public identifier for legacy Apache XCatalog files. There is no official system identifier for XCatalog files.- See Also:
- Constant Field Values
-
-
Method Detail
-
resolveEntity
public InputSource resolveEntity(String publicId, String systemId)
SAX resolveEntity API.- Specified by:
resolveEntityin interfaceEntityResolver- Overrides:
resolveEntityin classorg.apache.xml.resolver.helpers.BootstrapResolver
-
resolve
public Source resolve(String href, String base) throws TransformerException
Transformer resolve API.- Specified by:
resolvein interfaceURIResolver- Overrides:
resolvein classorg.apache.xml.resolver.helpers.BootstrapResolver- Throws:
TransformerException
-
makeURL
public static URL makeURL(String pathname) throws MalformedURLException
- Throws:
MalformedURLException
-
-