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(String fileName)
Parse a single catalog file, augmenting internal data structures.
|
protected String |
resolveLocalSystem(String systemId)
Return the applicable SYSTEM system identifier in this
catalog.
|
protected String |
resolveLocalURI(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(String fileName) throws MalformedURLException, IOException, org.apache.xml.resolver.CatalogException
parseCatalogFile
in class org.apache.xml.resolver.Catalog
fileName
- The filename of the catalog file to processMalformedURLException
- The fileName cannot be turned into
a valid URL.IOException
- Error reading catalog file.org.apache.xml.resolver.CatalogException
protected String resolveLocalSystem(String systemId) throws MalformedURLException, 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 catalogMalformedURLException
IOException
protected String resolveLocalURI(String uri) throws MalformedURLException, 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 catalogMalformedURLException
IOException
Copyright © 2010–2018 Planetary Data System. All rights reserved.