| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 construct| Method Detail | 
|---|
public final void setDocumentLocator(Locator l)
setDocumentLocator in interface ContentHandlersetDocumentLocator in class DefaultHandlerl - locator
public final InputSource resolveEntity(String publicId,
                                       String systemId)
resolveEntity in interface EntityResolverresolveEntity in class DefaultHandlerpublicId - publicIdsystemId - systemId
public final void startDocument()
startDocument in interface ContentHandlerstartDocument in class DefaultHandler
public final void endDocument()
                       throws SAXException
endDocument in interface ContentHandlerendDocument in class DefaultHandlerSAXException - if a sax parse exception occurs
public final void startElement(String namespaceURI,
                               String sName,
                               String qName,
                               Attributes attrs)
                        throws SAXException
startElement in interface ContentHandlerstartElement in class DefaultHandlernamespaceURI - namespacesName - simple nameqName - qualified nameattrs - attributes of node
SAXException - if a sax parse exception occurs
public final void endElement(String namespaceURI,
                             String sName,
                             String qName)
endElement in interface ContentHandlerendElement in class DefaultHandlernamespaceURI - namespacesName - simple nameqName - qulified name
public final void characters(char[] buf,
                             int offset,
                             int len)
                      throws SAXException
characters in interface ContentHandlercharacters in class DefaultHandlerbuf - 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 | |||||||||