|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.tireme.shared.xml.dom.dom3.MyDOM3ResourceResolver
public class MyDOM3ResourceResolver
Resolver used by the DOM3ErrorHandler load parser in order to find DTD and other PUBLIC defined files. The resolver assumes that the system catalog is sent using java system parameter xml.catalog.files
| Constructor Summary | |
|---|---|
MyDOM3ResourceResolver(java.lang.String catalog)
Constructs a catalog resolver with a default configuration. |
|
| Method Summary | |
|---|---|
java.lang.String |
resolvePublic(java.lang.String publicId,
java.lang.String systemId)
Returns the URI mapping in the catalog for the given external identifier or null if no mapping
exists. |
org.w3c.dom.ls.LSInput |
resolveResource(java.lang.String type,
java.lang.String namespaceURI,
java.lang.String publicId,
java.lang.String systemId,
java.lang.String baseURI)
|
java.lang.String |
resolveSystem(java.lang.String systemId)
Returns the URI mapping in the catalog for the given external identifier or null if no mapping
exists. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MyDOM3ResourceResolver(java.lang.String catalog)
throws java.io.IOException
Constructs a catalog resolver with a default configuration.
catalog - String
java.io.IOException| Method Detail |
|---|
public org.w3c.dom.ls.LSInput resolveResource(java.lang.String type,
java.lang.String namespaceURI,
java.lang.String publicId,
java.lang.String systemId,
java.lang.String baseURI)
resolveResource in interface org.w3c.dom.ls.LSResourceResolver
public final java.lang.String resolveSystem(java.lang.String systemId)
throws java.io.IOException
Returns the URI mapping in the catalog for the given external identifier or null if no mapping
exists. If the system identifier is an URN in the publicid namespace it is converted into a public
identifier by URN "unwrapping" as specified in the XML Catalogs specification.
systemId - the system identifier to locate in the catalog
null if no mapping was found in the catalog
java.io.IOException - if an i/o error occurred while reading the catalog
public final java.lang.String resolvePublic(java.lang.String publicId,
java.lang.String systemId)
throws java.io.IOException
Returns the URI mapping in the catalog for the given external identifier or null if no mapping
exists. Public identifiers are normalized before comparison.
publicId - the public identifier to locate in the catalogsystemId - the system identifier to locate in the catalog
null if no mapping was found in the catalog
java.io.IOException - if an i/o error occurred while reading the catalog
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||