jd.xml.xpath.model.parse
Class Sax1ParseHandler
java.lang.Object
jd.xml.xpath.model.parse.ParseHandler
jd.xml.xpath.model.parse.SaxParseHandler
jd.xml.xpath.model.parse.Sax1ParseHandler
- All Implemented Interfaces:
- DocumentHandler, DTDHandler, ModelLocator
- public class Sax1ParseHandler
- extends SaxParseHandler
- implements DocumentHandler
A ParseHandler for SAX 1 Parsers.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Sax1ParseHandler
protected Sax1ParseHandler()
Sax1ParseHandler
public Sax1ParseHandler(Parser parser)
throws SAXException
getParser
public Object getParser()
- Specified by:
getParser
in class ParseHandler
setValidating
public void setValidating(boolean validating)
- Specified by:
setValidating
in class ParseHandler
isValidating
public boolean isValidating()
- Specified by:
isValidating
in class ParseHandler
setEntityResolver
public void setEntityResolver(EntityResolver resolver)
- Specified by:
setEntityResolver
in class ParseHandler
getEntityResolver
public EntityResolver getEntityResolver()
- Specified by:
getEntityResolver
in class ParseHandler
parse
protected void parse(XmlSource source)
throws Exception
- Specified by:
parse
in class ParseHandler
- Throws:
Exception
startElement
public void startElement(String qname,
AttributeList atts)
throws SAXException
- Receive notification of the beginning of an element.
- Specified by:
startElement
in interface DocumentHandler
- Parameters:
qname
- The element type name.atts
- The attributes attached to the element, if any.
- Throws:
SAXException
- Any SAX exception, possibly
wrapping another exception.- See Also:
DocumentHandler.endElement(java.lang.String)
,
AttributeList
endElement
public void endElement(String name)
throws SAXException
- Receive notification of the end of an element.
- Specified by:
endElement
in interface DocumentHandler
- Parameters:
name
- The element type name
- Throws:
SAXException
- Any SAX exception, possibly
wrapping another exception.
processingInstruction
public void processingInstruction(String target,
String data)
throws SAXException
- Description copied from interface:
DocumentHandler
- Receive notification of a processing instruction.
The Parser will invoke this method once for each processing
instruction found: note that processing instructions may occur
before or after the main document element.
A SAX parser should never report an XML declaration (XML 1.0,
section 2.8) or a text declaration (XML 1.0, section 4.3.1)
using this method.
- Specified by:
processingInstruction
in interface DocumentHandler
- Parameters:
target
- The processing instruction target.data
- The processing instruction data, or null if
none was supplied.
- Throws:
SAXException
- Any SAX exception, possibly
wrapping another exception.