infovis.tree.io
Class SimpleXMLTreeReader

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

public class SimpleXMLTreeReader
extends AbstractXMLReader

Simple Reader for an XML tree. Reads the tag names.

Version:
$Revision: 1.12 $
Author:
Jean-Daniel Fekete

Constructor Summary
SimpleXMLTreeReader(InputStream in, String name, Tree tree)
          Constructor for SimpleXMLTreeReader.
 
Method Summary
 int createNode()
           
 void endElement(String namespaceURI, String localName, String qName)
           
 void startDocument()
           
 void startElement(String namespaceURI, String localName, String qName, Attributes atts)
           
 
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

SimpleXMLTreeReader

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

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

endElement

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

startDocument

public void startDocument()
                   throws SAXException
Specified by:
startDocument in interface ContentHandler
Overrides:
startDocument in class AbstractXMLReader
Throws:
SAXException
See Also:
ContentHandler.startDocument()

createNode

public int createNode()

startElement

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


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