|
GraphLab Project | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgraphlab.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 GraphModel |
loadGraphFromFile(java.io.File selectedFile)
loads a graph from a file, note that this method clears the graph first |
GraphModel |
read(java.io.File file)
Reads the file and enters the data in the graph. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Load()
Method Detail |
---|
public static GraphModel loadGraphFromFile(java.io.File selectedFile) throws java.io.IOException, javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException
selectedFile
- g
-
java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
public boolean accepts(java.io.File file)
GraphReaderInterface
accepts
in interface GraphReaderInterface
file
- the file
public java.lang.String getName()
GraphReaderInterface
getName
in interface Extension
getName
in interface GraphReaderInterface
public java.lang.String getExtension()
GraphReaderInterface
getExtension
in interface GraphReaderInterface
public GraphModel read(java.io.File file) throws GraphIOException
GraphReaderInterface
read
in interface GraphReaderInterface
GraphIOException
- In the case of the reader error.public java.lang.String getDescription()
getDescription
in interface Extension
|
GraphLab Project | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |