org.xml.sax.EntityResolver
public class DTDResolver
extends java.lang.Object
implements org.xml.sax.EntityResolver
The following DTD and XML schema are supported:
This resolver can resolve both public and system identifiers, and will return an input stream into a cached resource in the Castor JAR.
This resolver can be used as wrapper to another entity resolver. For example,
if a resolver is used for external entities in the mapping file, construct a
new resolver using the DTDResolver(EntityResolver)
constructor.
Modifier and Type | Class | Description |
---|---|---|
(package private) static class |
DTDResolver.DTDInfo |
Holds information about a given DTD of XML Schema.
|
Constructor | Description |
---|---|
DTDResolver() |
Constructs a new DTD resolver.
|
DTDResolver(org.xml.sax.EntityResolver resolver) |
Constructs a new DTD resolver.
|
Modifier and Type | Method | Description |
---|---|---|
java.net.URL |
getBaseURL() |
Returns the base URL in use.
|
org.xml.sax.InputSource |
resolveEntity(java.lang.String publicId,
java.lang.String systemId) |
Resolves public & system ids to files stored within the JAR.
|
void |
setBaseURL(java.net.URL baseUrl) |
Sets the base URL to use.
|
public DTDResolver(org.xml.sax.EntityResolver resolver)
public DTDResolver()
public void setBaseURL(java.net.URL baseUrl)
baseUrl
- Base URL.public java.net.URL getBaseURL()
public org.xml.sax.InputSource resolveEntity(java.lang.String publicId, java.lang.String systemId) throws java.io.IOException, org.xml.sax.SAXException
resolveEntity
in interface org.xml.sax.EntityResolver
java.io.IOException
org.xml.sax.SAXException
EntityResolver.resolveEntity(java.lang.String,
java.lang.String)
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com