|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exolab.castor.util.DTDResolver
public class DTDResolver
Entity resolver for various DTD/schema. Holds information and performs resolving on a variety of DTD and schema, both those defined by Castor and those used by Castor and cached by it.
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.
| Constructor Summary | |
|---|---|
DTDResolver()
Constructs a new DTD resolver. |
|
DTDResolver(EntityResolver resolver)
Constructs a new DTD resolver. |
|
| Method Summary | |
|---|---|
URL |
getBaseURL()
Returns the base URL in use. |
InputSource |
resolveEntity(String publicId,
String systemId)
Resolves public & system ids to files stored within the JAR. |
void |
setBaseURL(URL baseUrl)
Sets the base URL to use. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DTDResolver(EntityResolver resolver)
public DTDResolver()
| Method Detail |
|---|
public void setBaseURL(URL baseUrl)
baseUrl - Base URL.public URL getBaseURL()
public InputSource resolveEntity(String publicId,
String systemId)
throws IOException,
SAXException
resolveEntity in interface EntityResolverIOException
SAXExceptionEntityResolver.resolveEntity(java.lang.String,
java.lang.String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||