org.geotools.graph.io
Interface GraphReaderWriter

All Known Subinterfaces:
FileReaderWriter
All Known Implementing Classes:
AbstractReaderWriter, SerializedReaderWriter, TextfileReaderWriter

public interface GraphReaderWriter

Reads and writes features to and from some permanent form.

Author:
Justin Deoliveira, Refractions Research Inc, jdeolive@refractions.net

Method Summary
 java.lang.Object getProperty(java.lang.String name)
          Returns a property for the reader/writer.
 Graph read()
          Creates a Graph from some permanent representation.
 void setProperty(java.lang.String name, java.lang.Object obj)
          Sets a property for the reader/writer.
 void write(Graph g)
          Writes the graph to a permanent representation.
 

Method Detail

setProperty

public void setProperty(java.lang.String name,
                        java.lang.Object obj)
Sets a property for the reader/writer.

Parameters:
name - Name of the property.
obj - Value of the property.

getProperty

public java.lang.Object getProperty(java.lang.String name)
Returns a property for the reader/writer. This method will return null if the property has not been set with a call to setProperty(String,Object).

Parameters:
name - Name of the property.
Returns:
Value of the property or null if the property is undefined.

read

public Graph read()
           throws java.lang.Exception
Creates a Graph from some permanent representation.

Returns:
The represented graph.
Throws:
java.lang.Exception

write

public void write(Graph g)
           throws java.lang.Exception
Writes the graph to a permanent representation.

Parameters:
g - The graph to be
Throws:
java.lang.Exception


Copyright © GeoTools. All Rights Reserved.