Interface InputSerializer

All Superinterfaces:
Serializer
All Known Implementing Classes:
AbstractInputSerializer, AbstractIOSerializer, BioPAX_OWL_Reader, DOTreader, GMLReader, GraphMLReader, KEGG_XML_Reader, KEGG_XML_Reader_g, KEGG2_XML_Reader, MetaToolReader, PajekReader, PNTReader, SBML_XML_Reader, SIFreader, TextListReader, XGMMLReader

public interface InputSerializer
extends Serializer
Interfaces a serializer, which is able to reconstruct a graph from a given input.
Version:
$Revision: 1.6 $
  • Method Details

    • 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.
    • validFor

      boolean validFor​(InputStream reader)
      Parameters:
      reader - Warning: The Inputstream-Length may be limited in size, e.g. may only provide access to the first 5000 bytes.
      Returns:
    • 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.
    • read

      void read​(Reader reader, Graph newGraph) throws Exception
      Throws:
      Exception