public interface CatalogResolver extends EntityResolver
| Modifier and Type | Method and Description |
|---|---|
InputSource |
resolveEntity(String publicId,
String systemId)
The method searches through the catalog entries in the main and
alternative catalogs to attempt to find a match with the specified publicId
or systemId.
|
InputSource resolveEntity(String publicId, String systemId)
For resolving external entities, system entries will be matched before the public entries.
The prefer attribute: if the prefer is public,
and there is no match found through the system entries, public entries
will be considered. If it is not specified, the prefer is public
by default (Note that by the OASIS standard, system entries will always
be considered first when the external system identifier is specified.
Prefer public means that public entries will be matched when both system
and public identifiers are specified. In general therefore, prefer
public is recommended.)
resolveEntity in interface EntityResolverpublicId - the public identifier of the external entity being
referenced, or null if none was suppliedsystemId - the system identifier of the external entity being
referenced. A system identifier is required on all external entities. XML
requires a system identifier on all external entities, so this value is
always specified.InputSource object if a mapping is found. If no mapping is
found, returns a InputSource object containing an empty
Reader if the javax.xml.catalog.resolve property
is set to ignore; returns null if the
javax.xml.catalog.resolve property is set to continue.CatalogException - if no mapping is found and
javax.xml.catalog.resolve is specified as strictInputSource Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2016, Oracle and/or its affiliates. All rights reserved.
DRAFT 9-internal+0-2016-01-26-133437.ivan.openjdk9onspinwait