org.apache.commons.configuration.resolver
Class CatalogResolver.Catalog

java.lang.Object
  extended by org.apache.xml.resolver.Catalog
      extended by org.apache.commons.configuration.resolver.CatalogResolver.Catalog
Enclosing class:
CatalogResolver

public static class CatalogResolver.Catalog
extends org.apache.xml.resolver.Catalog

Overrides the Catalog implementation to use the underlying FileSystem.


Field Summary
 
Fields inherited from class 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 Summary
CatalogResolver.Catalog()
           
 
Method Summary
 void loadSystemCatalogs()
          Load the catalogs.
protected  java.lang.String normalizeURI(java.lang.String uriref)
          Perform character normalization on a URI reference.
 void parseCatalog(java.lang.String baseDir, java.lang.String fileName)
          Parse the specified catalog file.
 
Methods inherited from class org.apache.xml.resolver.Catalog
addDelegate, addEntry, addReader, copyReaders, encodedByte, fixSlashes, getCatalogManager, getCurrentBase, getDefaultOverride, getPublicIDs, makeAbsolute, newCatalog, parseAllCatalogs, parseCatalog, parseCatalog, parseCatalog, parseCatalogFile, parsePendingCatalogs, resolveDoctype, resolveDocument, resolveEntity, resolveLocalPublic, resolveLocalSystem, resolveLocalURI, resolveNotation, resolvePublic, resolveSubordinateCatalogs, resolveSystem, resolveURI, setCatalogManager, setupReaders, unknownEntry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CatalogResolver.Catalog

public CatalogResolver.Catalog()
Method Detail

loadSystemCatalogs

public void loadSystemCatalogs()
                        throws java.io.IOException
Load the catalogs.

Overrides:
loadSystemCatalogs in class org.apache.xml.resolver.Catalog
Throws:
java.io.IOException - if an error occurs.

parseCatalog

public void parseCatalog(java.lang.String baseDir,
                         java.lang.String fileName)
                  throws java.io.IOException
Parse the specified catalog file.

Parameters:
baseDir - The base directory, if not included in the file name.
fileName - The catalog file. May be a full URI String.
Throws:
java.io.IOException - If an error occurs.

normalizeURI

protected java.lang.String normalizeURI(java.lang.String uriref)
Perform character normalization on a URI reference.

Overrides:
normalizeURI in class org.apache.xml.resolver.Catalog
Parameters:
uriref - The URI reference
Returns:
The normalized URI reference.


Copyright © 2001-2013. All Rights Reserved.