public class XMLCatalog
extends org.apache.xml.resolver.Catalog
base, BASE, CATALOG, catalogCwd, catalogEntries, catalogFiles, catalogManager, catalogs, default_override, DELEGATE_PUBLIC, DELEGATE_SYSTEM, DELEGATE_URI, DOCTYPE, DOCUMENT, DTDDECL, ENTITY, LINKTYPE, localCatalogFiles, localDelegate, NOTATION, OVERRIDE, PUBLIC, readerArr, readerMap, REWRITE_SYSTEM, REWRITE_URI, SGMLDECL, SYSTEM, SYSTEM_SUFFIX, URI, URI_SUFFIX
Constructor and Description |
---|
XMLCatalog()
Constructs an empty Catalog.
|
XMLCatalog(org.apache.xml.resolver.CatalogManager manager)
Constructs an empty Catalog with a specific CatalogManager.
|
Modifier and Type | Method and Description |
---|---|
protected void |
parseCatalogFile(java.lang.String fileName)
Parse a single catalog file, augmenting internal data structures.
|
protected java.lang.String |
resolveLocalSystem(java.lang.String systemId)
Return the applicable SYSTEM system identifier in this
catalog.
|
protected java.lang.String |
resolveLocalURI(java.lang.String uri)
Return the applicable URI in this catalog.
|
addDelegate, addEntry, addReader, copyReaders, encodedByte, fixSlashes, getCatalogManager, getCurrentBase, getDefaultOverride, loadSystemCatalogs, makeAbsolute, newCatalog, normalizeURI, parseAllCatalogs, parseCatalog, parseCatalog, parseCatalog, parsePendingCatalogs, resolveDoctype, resolveDocument, resolveEntity, resolveLocalPublic, resolveNotation, resolvePublic, resolveSubordinateCatalogs, resolveSystem, resolveURI, setCatalogManager, setupReaders, unknownEntry
public XMLCatalog()
The constructor interrogates the relevant system properties using the default (static) CatalogManager and initializes the catalog data structures.
public XMLCatalog(org.apache.xml.resolver.CatalogManager manager)
The constructor interrogates the relevant system properties using the specified Catalog Manager and initializes the catalog data structures.
protected void parseCatalogFile(java.lang.String fileName) throws java.net.MalformedURLException, java.io.IOException, org.apache.xml.resolver.CatalogException
parseCatalogFile
in class org.apache.xml.resolver.Catalog
fileName
- The filename of the catalog file to processjava.net.MalformedURLException
- The fileName cannot be turned into
a valid URL.java.io.IOException
- Error reading catalog file.org.apache.xml.resolver.CatalogException
protected java.lang.String resolveLocalSystem(java.lang.String systemId) throws java.net.MalformedURLException, java.io.IOException
If a SYSTEM entry exists in the catalog file for the system ID specified, return the mapped value.
resolveLocalSystem
in class org.apache.xml.resolver.Catalog
systemId
- The system ID to locate in the catalogjava.net.MalformedURLException
java.io.IOException
protected java.lang.String resolveLocalURI(java.lang.String uri) throws java.net.MalformedURLException, java.io.IOException
If a URI entry exists in the catalog file for the URI specified, return the mapped value.
resolveLocalURI
in class org.apache.xml.resolver.Catalog
uri
- The URI to locate in the catalogjava.net.MalformedURLException
java.io.IOException
Copyright © 2010-2018 Planetary Data System. All Rights Reserved.