org.ow2.jonas.deployment.common.digester
Class JEntityResolverWithDigester
java.lang.Object
org.ow2.jonas.deployment.common.lib.JEntityResolver
org.ow2.jonas.deployment.common.digester.JEntityResolverWithDigester
- All Implemented Interfaces:
- EntityResolver
public class JEntityResolverWithDigester
- extends JEntityResolver
- implements EntityResolver
This class defines the entity resolver used to resolve DTDs/Schemas during
the xml parsing. It extends the JEntityResolver
in order to allow for that parser to be used without having the digester classes.
Method Summary |
InputSource |
resolveEntity(String publicId,
String systemId)
The Parser will call this method before opening any external entity except
the top-level document entity. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JEntityResolverWithDigester
public JEntityResolverWithDigester(JDigester jd)
- Constructor
- Parameters:
jd
- linked JDigester object
resolveEntity
public InputSource resolveEntity(String publicId,
String systemId)
throws IOException,
SAXException
- The Parser will call this method before opening any external entity except
the top-level document entity.
- Specified by:
resolveEntity
in interface EntityResolver
- Overrides:
resolveEntity
in class JEntityResolver
- 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.
Copyright © 2010 OW2 Consortium. All Rights Reserved.