com.hp.hpl.guess.io
Class GraphMLReader

java.lang.Object
  extended byorg.xml.sax.helpers.DefaultHandler
      extended bycom.hp.hpl.guess.io.GraphMLReader
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public class GraphMLReader
extends DefaultHandler


Constructor Summary
GraphMLReader(Graph g, InputStream r)
           
GraphMLReader(Graph g, String fileName)
           
 
Method Summary
 void characters(char[] ch, int start, int length)
           
 void createEdge(Map attributeMap)
           
 void createKey(Map attributeMap)
           
 void createNode(Map attributeMap)
           
 void endElement(String namespaceURI, String lName, String qName)
           
 void load(Graph g, InputStream r)
           
 void startElement(String namespaceURI, String lName, String qName, Attributes attrs)
           
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphMLReader

public GraphMLReader(Graph g,
                     String fileName)

GraphMLReader

public GraphMLReader(Graph g,
                     InputStream r)
Method Detail

load

public void load(Graph g,
                 InputStream r)

startElement

public void startElement(String namespaceURI,
                         String lName,
                         String qName,
                         Attributes attrs)
                  throws SAXException
Throws:
SAXException

endElement

public void endElement(String namespaceURI,
                       String lName,
                       String qName)
                throws SAXException
Throws:
SAXException

createKey

public void createKey(Map attributeMap)

characters

public void characters(char[] ch,
                       int start,
                       int length)

createNode

public void createNode(Map attributeMap)

createEdge

public void createEdge(Map attributeMap)