public class GXLWriter extends Object implements GraphWriter, CospanWriter
Modifier and Type | Method and Description |
---|---|
static GXLWriter |
getWriter()
Returns an instance of the GXL Writer
|
void |
write(Cospan cospan,
String filename)
Writes a cospan to the file specified by
filename . |
void |
write(Graph graph,
String filename)
Writes a graph to the file specified by
filename . |
public static GXLWriter getWriter()
public void write(Graph graph, String filename) throws FileNotFoundException, IOException, UnsupportedEncodingException
GraphWriter
filename
.write
in interface GraphWriter
graph
- the graph to be writtenfilename
- the filename of the file to which the graph is writtenFileNotFoundException
- thrown if the file exists but is a directory rather than a
regular file, does not exist but cannot be created, or cannot be opened for any other reasonIOException
- thrown if an I/O error occurs while writing the graphUnsupportedEncodingException
public void write(Cospan cospan, String filename) throws FileNotFoundException, IOException, UnsupportedEncodingException
CospanWriter
filename
.write
in interface CospanWriter
cospan
- the cospan to be writtenfilename
- the filename of the file to which the cospan is writtenFileNotFoundException
- thrown if the file exists but is a directory rather than a
regular file, does not exist but cannot be created, or cannot be opened for any other reasonIOException
- thrown if an I/O error occurs while writing the automatonUnsupportedEncodingException