Class BindingLoader.BindingResolver
- java.lang.Object
-
- org.exolab.castor.builder.binding.BindingLoader.BindingResolver
-
- All Implemented Interfaces:
org.xml.sax.EntityResolver
- Enclosing class:
- BindingLoader
class BindingLoader.BindingResolver extends java.lang.Object implements org.xml.sax.EntityResolverEntityResolver specific to resolving entities related to the Castor XML code generator binding file.- Author:
- Werner Guttmann
-
-
Constructor Summary
Constructors Constructor Description BindingResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.net.URLgetBaseURL()Returns the base URL for relative processing.org.xml.sax.InputSourceresolveEntity(java.lang.String publicId, java.lang.String systemId)Code adapted from DTDResolver written by Assaf Arkin.voidsetBaseURL(java.net.URL baseUrl)Sets a base URL for relative processing.
-
-
-
Method Detail
-
setBaseURL
public void setBaseURL(java.net.URL baseUrl)
Sets a base URL for relative processing.- Parameters:
baseUrl- Base URL for relative processing.
-
getBaseURL
public java.net.URL getBaseURL()
Returns the base URL for relative processing.- Returns:
- base URL for relative processing
-
resolveEntity
public org.xml.sax.InputSource resolveEntity(java.lang.String publicId, java.lang.String systemId) throws java.io.IOException, org.xml.sax.SAXExceptionCode adapted from DTDResolver written by Assaf Arkin.- Specified by:
resolveEntityin interfaceorg.xml.sax.EntityResolver- Parameters:
publicId- The public identifier of the external entity being referenced, or null if none was supplied.systemId- The system identifier of the external entity being referenced.- Returns:
- An InputSource object describing the new input source, or null to request that the parser open a regular URI connection to the system identifier.
- Throws:
org.xml.sax.SAXException- Any SAX exception, possibly wrapping another exception.java.io.IOException- A Java-specific IO exception, possibly the result of creating a new InputStream or Reader for the InputSource.- See Also:
DTDResolver.resolveEntity(java.lang.String, java.lang.String),EntityResolver.resolveEntity(java.lang.String, java.lang.String)
-
-