|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xml.sax.helpers.DefaultHandler net.sourceforge.jeuclid.biparser.JEuclidSAXHandler
public class JEuclidSAXHandler
this class is used for SAX parsing. it builds a BiTree out of a text while parsing
Constructor Summary | |
---|---|
JEuclidSAXHandler(String c,
BiTree t)
create a new SAX-Handler for parsing and creating a BiTree. |
Method Summary | |
---|---|
void |
characters(char[] buf,
int offset,
int len)
concat characters while parsing. |
void |
endDocument()
end document. |
void |
endElement(String namespaceURI,
String sName,
String qName)
end element, called at end of every close tag. |
InputSource |
resolveEntity(String publicId,
String systemId)
stop resolving of entities (dtd). |
void |
setDocumentLocator(Locator l)
set the document locator. |
void |
startDocument()
start document. |
void |
startElement(String namespaceURI,
String sName,
String qName,
Attributes attrs)
start element, called at end of every new open tag. |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
---|
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JEuclidSAXHandler(String c, BiTree t)
c
- inputtext to parset
- BiTree to constructMethod Detail |
---|
public final void setDocumentLocator(Locator l)
setDocumentLocator
in interface ContentHandler
setDocumentLocator
in class DefaultHandler
l
- locatorpublic final InputSource resolveEntity(String publicId, String systemId)
resolveEntity
in interface EntityResolver
resolveEntity
in class DefaultHandler
publicId
- publicIdsystemId
- systemId
public final void startDocument()
startDocument
in interface ContentHandler
startDocument
in class DefaultHandler
public final void endDocument() throws SAXException
endDocument
in interface ContentHandler
endDocument
in class DefaultHandler
SAXException
- if a sax parse exception occurspublic final void startElement(String namespaceURI, String sName, String qName, Attributes attrs) throws SAXException
startElement
in interface ContentHandler
startElement
in class DefaultHandler
namespaceURI
- namespacesName
- simple nameqName
- qualified nameattrs
- attributes of node
SAXException
- if a sax parse exception occurspublic final void endElement(String namespaceURI, String sName, String qName)
endElement
in interface ContentHandler
endElement
in class DefaultHandler
namespaceURI
- namespacesName
- simple nameqName
- qulified namepublic final void characters(char[] buf, int offset, int len) throws SAXException
characters
in interface ContentHandler
characters
in class DefaultHandler
buf
- inputtextoffset
- offset of characters to inputtextlen
- number of characters
SAXException
- if a sax parse exception occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |