org.pf.six
Class EmptyEntityResolver
java.lang.Object
org.pf.six.EmptyEntityResolver
- All Implemented Interfaces:
- org.xml.sax.EntityResolver
- Direct Known Subclasses:
- FileEntityResolver
public class EmptyEntityResolver
- extends java.lang.Object
- implements org.xml.sax.EntityResolver
This resolver always returns an empty stream as the result of its
method resolveEntity(). It can be used to provide an empty DTD, if
validating is not desired.
- Version:
- 1.0
- Author:
- Manfred Duchrow
|
Method Summary |
org.xml.sax.InputSource |
resolveEntity(java.lang.String publicId,
java.lang.String systemId)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EmptyEntityResolver
public EmptyEntityResolver()
- Initialize the new instance with default values.
resolveEntity
public org.xml.sax.InputSource resolveEntity(java.lang.String publicId,
java.lang.String systemId)
throws org.xml.sax.SAXException,
java.io.IOException
- Specified by:
resolveEntity in interface org.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:
InputSource