| java.lang.Object com.sun.org.apache.xml.internal.resolver.tools.CatalogResolver
Method Summary | |
public Catalog | getCatalog() | public String | getResolvedEntity(String publicId, String systemId) Implements the guts of the resolveEntity method
for the SAX interface.
Presented with an optional public identifier and a system
identifier, this function attempts to locate a mapping in the
catalogs.
If such a mapping is found, it is returned. | public Source | resolve(String href, String base) | public InputSource | resolveEntity(String publicId, String systemId) Implements the resolveEntity method
for the SAX interface.
Presented with an optional public identifier and a system
identifier, this function attempts to locate a mapping in the
catalogs.
If such a mapping is found, the resolver attempts to open
the mapped value as an InputSource and return it. |
namespaceAware | public boolean namespaceAware(Code) | | Make the parser Namespace aware?
|
validating | public boolean validating(Code) | | Make the parser validating?
|
CatalogResolver | public CatalogResolver()(Code) | | Constructor
|
CatalogResolver | public CatalogResolver(boolean privateCatalog)(Code) | | Constructor
|
getCatalog | public Catalog getCatalog()(Code) | | Return the underlying catalog
|
getResolvedEntity | public String getResolvedEntity(String publicId, String systemId)(Code) | | Implements the guts of the resolveEntity method
for the SAX interface.
Presented with an optional public identifier and a system
identifier, this function attempts to locate a mapping in the
catalogs.
If such a mapping is found, it is returned. If no mapping is
found, null is returned.
Parameters: publicId - The public identifier for the entity in question.This may be null. Parameters: systemId - The system identifier for the entity in question.XML requires a system identifier on all external entities, so thisvalue is always specified. The resolved identifier (a URI reference). |
resolveEntity | public InputSource resolveEntity(String publicId, String systemId)(Code) | | Implements the resolveEntity method
for the SAX interface.
Presented with an optional public identifier and a system
identifier, this function attempts to locate a mapping in the
catalogs.
If such a mapping is found, the resolver attempts to open
the mapped value as an InputSource and return it. Exceptions are
ignored and null is returned if the mapped value cannot be opened
as an input source.
If no mapping is found (or an error occurs attempting to open
the mapped value as an input source), null is returned and the system
will use the specified system identifier as if no entityResolver
was specified.
Parameters: publicId - The public identifier for the entity in question.This may be null. Parameters: systemId - The system identifier for the entity in question.XML requires a system identifier on all external entities, so thisvalue is always specified. An InputSource for the mapped identifier, or null. |
|
|