jd.xml.xpath.model.parse
Class SaxParseHandler
java.lang.Object
jd.xml.xpath.model.parse.ParseHandler
jd.xml.xpath.model.parse.SaxParseHandler
- All Implemented Interfaces:
- DTDHandler, ModelLocator
- Direct Known Subclasses:
- Sax1ParseHandler, Sax2ParseHandler
- public abstract class SaxParseHandler
- extends ParseHandler
- implements DTDHandler
A base class for SAX ParseHandlers.
Methods inherited from class jd.xml.xpath.model.parse.ParseHandler |
flushTextNode, getEntityResolver, getNodeName, getNodeName, getParser, isValidating, parse, parse, popPreserveWhitespace, pushPreserveWhitespace, setEntityResolver, setValidating |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
locator_
protected Locator locator_
SaxParseHandler
public SaxParseHandler()
getInputSource
protected InputSource getInputSource(XmlSource source)
throws IOException,
SAXException
- Throws:
IOException
SAXException
setDocumentLocator
public void setDocumentLocator(Locator locator)
startDocument
public void startDocument()
throws SAXException
- Throws:
SAXException
endDocument
public void endDocument()
throws SAXException
- Throws:
SAXException
characters
public void characters(char[] ch,
int start,
int length)
ignorableWhitespace
public void ignorableWhitespace(char[] ch,
int start,
int length)
notationDecl
public void notationDecl(String name,
String publicId,
String systemId)
- Description copied from interface:
DTDHandler
- Receive notification of a notation declaration event.
It is up to the application to record the notation for later
reference, if necessary.
At least one of publicId and systemId must be non-null.
If a system identifier is present, and it is a URL, the SAX
parser must resolve it fully before passing it to the
application through this event.
There is no guarantee that the notation declaration will be
reported before any unparsed entities that use it.
- Specified by:
notationDecl
in interface DTDHandler
- Parameters:
name
- The notation name.publicId
- The notation's public identifier, or null if
none was given.systemId
- The notation's system identifier, or null if
none was given.- See Also:
DTDHandler.unparsedEntityDecl(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
,
AttributeList
unparsedEntityDecl
public void unparsedEntityDecl(String name,
String publicId,
String systemId,
String notationName)
throws SAXException
- Description copied from interface:
DTDHandler
- Receive notification of an unparsed entity declaration event.
Note that the notation name corresponds to a notation
reported by the notationDecl
event.
It is up to the application to record the entity for later
reference, if necessary.
If the system identifier is a URL, the parser must resolve it
fully before passing it to the application.
- Specified by:
unparsedEntityDecl
in interface DTDHandler
- Parameters:
name
- The unparsed entity's name.publicId
- The entity's public identifier, or null if none
was given.systemId
- The entity's system identifier.
- Throws:
SAXException
- Any SAX exception, possibly
wrapping another exception.- See Also:
DTDHandler.notationDecl(java.lang.String, java.lang.String, java.lang.String)
,
AttributeList
getLineNumber
public int getLineNumber()
- Specified by:
getLineNumber
in interface ModelLocator