public class SerializedReaderWriter extends AbstractReaderWriter implements FileReaderWriter
BUILDER, EDGES, GENERATOR, NODES
FILENAME
Constructor and Description |
---|
SerializedReaderWriter() |
Modifier and Type | Method and Description |
---|---|
Graph |
read()
Deserializes the graph and reconstructs the original structure.
|
void |
write(Graph graph)
Serializes the graph by writing each edge in the graph to an object output stream.
|
getProperty, setProperty, setProperty
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getProperty, setProperty
public Graph read() throws Exception
read
in interface GraphReaderWriter
Exception
GraphReaderWriter.read()
public void write(Graph graph) throws Exception
write
in interface GraphReaderWriter
graph
- The graph to beException
GraphReaderWriter#write()
Copyright © 1996–2019 Geotools. All rights reserved.