|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
edu.uci.ics.jung.io.GraphMLFileHandler
de.uka.algo.io.JungGraphMLFileHandler
public class JungGraphMLFileHandler
A GraphML file handler to parse simple GraphML files. More or less a replacement for jung.io.GraphMLFileHandler because it does not handle data elements.
Constructor Summary | |
---|---|
JungGraphMLFileHandler()
|
Method Summary | |
---|---|
void |
characters(char[] ch,
int start,
int length)
This method is called whenever the SaX parser encounters character content inside a tag |
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
This method is called whenever the SaX parser encounters a closing tag |
static edu.uci.ics.jung.graph.Graph |
loadGraphFile(java.io.File filename)
Deprecated. Use JungIOUtils.loadGraphFile |
static edu.uci.ics.jung.graph.Graph |
loadGraphFile(java.net.URL url)
Deprecated. Use JungIOUtils.loadGraphFile |
static edu.uci.ics.jung.graph.Graph |
loadGraphResource(java.lang.String filename)
Deprecated. Use JungIOUtils.loadGraphResource |
void |
startElement(java.lang.String lName,
java.lang.String namespaceURI,
java.lang.String qName,
org.xml.sax.Attributes attrs)
This method is called whenever the SaX parser encounters an opening tag |
static void |
writeGraphFile(edu.uci.ics.jung.graph.Graph graph,
java.io.File url)
Deprecated. Use JungIOUtils.writeGraphFile |
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 |
---|
public JungGraphMLFileHandler()
Method Detail |
---|
@Deprecated public static edu.uci.ics.jung.graph.Graph loadGraphFile(java.io.File filename) throws java.io.IOException
JungIOUtils.loadGraphFile
filename
- The name of the GraphML file to load
java.io.IOException
- if file is not found@Deprecated public static edu.uci.ics.jung.graph.Graph loadGraphFile(java.net.URL url) throws java.io.IOException
JungIOUtils.loadGraphFile
url
- The name of the GraphML file to load
java.io.IOException
- if file is not found@Deprecated public static edu.uci.ics.jung.graph.Graph loadGraphResource(java.lang.String filename) throws java.io.IOException
JungIOUtils.loadGraphResource
filename
and load the corresponding GraphML file resource.
filename
- The name of the GraphML file to load
java.io.IOException
- if resource is not found@Deprecated public static void writeGraphFile(edu.uci.ics.jung.graph.Graph graph, java.io.File url) throws java.io.IOException
JungIOUtils.writeGraphFile
graph
- A Jung Graphurl
- location of the output file
java.io.IOException
public void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName)
endElement
in interface org.xml.sax.ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
ContentHandler.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)
public void characters(char[] ch, int start, int length)
characters
in interface org.xml.sax.ContentHandler
characters
in class org.xml.sax.helpers.DefaultHandler
ContentHandler.characters(char[], int, int)
public void startElement(java.lang.String lName, java.lang.String namespaceURI, java.lang.String qName, org.xml.sax.Attributes attrs) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.ContentHandler
startElement
in class edu.uci.ics.jung.io.GraphMLFileHandler
org.xml.sax.SAXException
ContentHandler.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |