Class BindingLoader.BindingResolver
java.lang.Object
org.exolab.castor.builder.binding.BindingLoader.BindingResolver
- All Implemented Interfaces:
EntityResolver
- Enclosing class:
- BindingLoader
EntityResolver specific to resolving entities related to the Castor XML
code generator binding file.
- Author:
- Werner Guttmann
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the base URL for relative processing.resolveEntity
(String publicId, String systemId) Code adapted from DTDResolver written by Assaf Arkin.void
setBaseURL
(URL baseUrl) Sets a base URL for relative processing.
-
Constructor Details
-
BindingResolver
BindingResolver()
-
-
Method Details
-
setBaseURL
Sets a base URL for relative processing.- Parameters:
baseUrl
- Base URL for relative processing.
-
getBaseURL
Returns the base URL for relative processing.- Returns:
- base URL for relative processing
-
resolveEntity
Code adapted from DTDResolver written by Assaf Arkin.- Specified by:
resolveEntity
in interfaceEntityResolver
- 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:
SAXException
- Any SAX exception, possibly wrapping another exception.IOException
- A Java-specific IO exception, possibly the result of creating a new InputStream or Reader for the InputSource.- See Also:
-