public class SerializedReaderWriter extends AbstractReaderWriter implements FileReaderWriter
BUILDER, EDGES, GENERATOR, NODESFILENAME| 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, setPropertyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetProperty, setPropertypublic Graph read() throws Exception
read in interface GraphReaderWriterExceptionGraphReaderWriter.read()public void write(Graph graph) throws Exception
write in interface GraphReaderWritergraph - The graph to beExceptionGraphReaderWriter#write()Copyright © 1996–2019 Geotools. All rights reserved.