|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgraphlab.gui.plugins.main.saveload.Load
public class Load
| Constructor Summary | |
|---|---|
Load()
|
|
| Method Summary | |
|---|---|
boolean |
accepts(java.io.File file)
Reads the file and enters the data in the graph. |
java.lang.String |
getDescription()
|
java.lang.String |
getExtension()
Retrieves the file extension for the file type. |
java.lang.String |
getName()
Retrieves the name of the file type. |
static void |
loadGraphFromFile(java.io.File selectedFile,
Graph g)
loads a graph from a file, note that this method clears the graph first |
void |
read(java.io.File file,
Graph graph)
Reads the file and enters the data in the graph. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Load()
| Method Detail |
|---|
public static void loadGraphFromFile(java.io.File selectedFile,
Graph g)
throws java.io.IOException,
javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException
selectedFile - g -
java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXExceptionpublic boolean accepts(java.io.File file)
GraphReaderInterface
accepts in interface GraphReaderInterfacefile - the file
public java.lang.String getName()
GraphReaderInterface
getName in interface GraphReaderInterfacegetName in interface Extensionpublic java.lang.String getExtension()
GraphReaderInterface
getExtension in interface GraphReaderInterface
public void read(java.io.File file,
Graph graph)
throws GraphIOException
GraphReaderInterface
read in interface GraphReaderInterfaceGraphIOException - In the case of the reader error.public java.lang.String getDescription()
getDescription in interface Extension
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||