org.graffiti.plugin.io
Interface InputSerializer

All Superinterfaces:
Parametrizable, Serializer
All Known Implementing Classes:
AbstractInputSerializer, AbstractIOSerializer, XMLSerializer

public interface InputSerializer
extends Serializer, Parametrizable

Interfaces a serializer, which is able to reconstruct a graph from a given input.

Version:
$Revision: 5767 $

Method Summary
 Graph read(InputStream in)
          Reads in a graph from the given input stream.
 void read(InputStream in, Graph g)
          Reads in a graph from the given input stream.
 void read(String filename, Graph g)
          Reads in a graph from the given filename.
 void read(URL url, Graph g)
          Reads in the graph from the given url.
 
Methods inherited from interface org.graffiti.plugin.io.Serializer
getExtensions
 
Methods inherited from interface org.graffiti.plugin.Parametrizable
getDefaultParameters, getName, getParameters, setParameters
 

Method Detail

read

void read(String filename,
          Graph g)
          throws IOException
Reads in a graph from the given filename.

Parameters:
filename - The name of the file to read the graph from.
g - The graph to add the newly read graph to.
Throws:
IOException - If an IO error occurs.

read

void read(URL url,
          Graph g)
          throws IOException
Reads in the graph from the given url.

Parameters:
url - The URL to read the graph from.
g - The graph to add the newly read graph to.
Throws:
IOException - If an IO error occurs.

read

void read(InputStream in,
          Graph g)
          throws IOException
Reads in a graph from the given input stream.

Parameters:
in - The input stream to read the graph from.
g - The graph to add the newly read graph to.
Throws:
IOException - If an IO error occurs.

read

Graph read(InputStream in)
           throws IOException
Reads in a graph from the given input stream.

Parameters:
in - The input stream to read the graph from.
Returns:
The newly read graph.
Throws:
IOException - If an IO error occurs.


Generated at 2012-05-30 11:00:36 PM CEST