infovis.tree.io
Class XMLTreeReader

java.lang.Object
  extended by infovis.io.AbstractReader
      extended by infovis.io.AbstractXMLReader
          extended by infovis.tree.io.SimpleXMLTreeReader
              extended by infovis.tree.io.XMLTreeReader
All Implemented Interfaces:
ContentHandler, EntityResolver

public class XMLTreeReader
extends SimpleXMLTreeReader

Tree Reader for the treemal DTD.

Version:
$Revision: 1.15 $
Author:
Jean-Daniel Fekete
InfoVis factory arguments:
TreeReaderFactory xml

Constructor Summary
XMLTreeReader(InputStream in, String name, Tree tree)
          Constructor for XMLTreeReader.
 
Method Summary
 void endElement(String namespaceURI, String localName, String qName)
           
 void startElement(String namespaceURI, String localName, String qName, Attributes atts)
           
 
Methods inherited from class infovis.tree.io.SimpleXMLTreeReader
createNode, startDocument
 
Methods inherited from class infovis.io.AbstractXMLReader
characters, endDocument, endPrefixMapping, ignorableWhitespace, load, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping
 
Methods inherited from class infovis.io.AbstractReader
close, createColumn, getBufferedReader, getEncoding, getIn, getName, guessFieldType, setEncoding, setIn, setName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLTreeReader

public XMLTreeReader(InputStream in,
                     String name,
                     Tree tree)
Constructor for XMLTreeReader.

Parameters:
in - the BufferedReader
name - a name,
tree - the Tree.
Method Detail

startElement

public void startElement(String namespaceURI,
                         String localName,
                         String qName,
                         Attributes atts)
                  throws SAXException
Specified by:
startElement in interface ContentHandler
Overrides:
startElement in class SimpleXMLTreeReader
Throws:
SAXException
See Also:
ContentHandler.startElement(String, String, String, Attributes)

endElement

public void endElement(String namespaceURI,
                       String localName,
                       String qName)
                throws SAXException
Specified by:
endElement in interface ContentHandler
Overrides:
endElement in class SimpleXMLTreeReader
Throws:
SAXException
See Also:
ContentHandler.endElement(String, String, String)


Copyright 2005 by Jean-Daniel Fekete and INRIA, France All rights reserved.