infovis.tree.io
Class SimpleXMLTreeReader
java.lang.Object
infovis.io.AbstractReader
infovis.io.AbstractXMLReader
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
SimpleXMLTreeReader
public SimpleXMLTreeReader(InputStream in,
String name,
Tree tree)
- Constructor for SimpleXMLTreeReader.
- Parameters:
in - the BufferedReader.name - the file name.tree - the Tree.
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.