infovis.graph.io
Class GraphReaderFactory

java.lang.Object
  extended by infovis.utils.BasicFactory
      extended by infovis.io.AbstractReaderFactory
          extended by infovis.graph.io.GraphReaderFactory

public class GraphReaderFactory
extends AbstractReaderFactory

Reader Factory for Graphs.

Version:
$Revision: 1.18 $
Author:
Jean-Daniel Fekete

Nested Class Summary
static class GraphReaderFactory.DefaultCreator
           
 
Nested classes/interfaces inherited from class infovis.io.AbstractReaderFactory
AbstractReaderFactory.AbstractCreator, AbstractReaderFactory.Creator
 
Constructor Summary
GraphReaderFactory()
           
 
Method Summary
static AbstractReader createGraphReader(InputStream in, String name, Graph graph)
           
static AbstractReader createGraphReader(String name, Graph graph)
          Creates a graph reader from a specified resource name and a graph
static Graph getGraph(Table table)
          Returns a Graph from a specified table.
static GraphReaderFactory getInstance()
          Returns the shared instance of this GraphReaderFactory
static boolean readGraph(String name, Graph graph)
           
static void setInstance(GraphReaderFactory graph)
           
 
Methods inherited from class infovis.io.AbstractReaderFactory
add, create, create, getCreatorAt, getCreatorNamed, iterator, remove, tryRead
 
Methods inherited from class infovis.utils.BasicFactory
loadProperties
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphReaderFactory

public GraphReaderFactory()
Method Detail

getGraph

public static Graph getGraph(Table table)
Returns a Graph from a specified table.

Parameters:
table - the table.
Returns:
a Graph from a specified table.

getInstance

public static GraphReaderFactory getInstance()
Returns the shared instance of this GraphReaderFactory

Returns:
the shared instance of this GraphReaderFactory

setInstance

public static void setInstance(GraphReaderFactory graph)

createGraphReader

public static AbstractReader createGraphReader(String name,
                                               Graph graph)
Creates a graph reader from a specified resource name and a graph

Parameters:
name - the resource name
graph - the graph
Returns:
a graph reader or null.

createGraphReader

public static AbstractReader createGraphReader(InputStream in,
                                               String name,
                                               Graph graph)

readGraph

public static boolean readGraph(String name,
                                Graph graph)


Copyright 2005 by Jean-Daniel Fekete and INRIA, France All rights reserved.