infovis.table.io
Class TableReaderFactory

java.lang.Object
  extended by infovis.utils.BasicFactory
      extended by infovis.io.AbstractReaderFactory
          extended by infovis.table.io.TableReaderFactory

public class TableReaderFactory
extends AbstractReaderFactory

Factory of table readers.

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

Nested Class Summary
static class TableReaderFactory.DefaultCreator
          Default creator class for table readers.
 
Nested classes/interfaces inherited from class infovis.io.AbstractReaderFactory
AbstractReaderFactory.AbstractCreator, AbstractReaderFactory.Creator
 
Constructor Summary
TableReaderFactory()
          Constructor.
 
Method Summary
static AbstractReader createTableReader(String name, Table table)
          Returns a reader or null from a format name and a table.
static TableReaderFactory getInstance()
          Returns the instance of the factory.
static boolean readTable(String name, Table table)
          Reads a table from a resource name.
static void setInstance(TableReaderFactory factory)
          Sets the instance of the factory.
 
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

TableReaderFactory

public TableReaderFactory()
Constructor.

Method Detail

getInstance

public static TableReaderFactory getInstance()
Returns the instance of the factory.

Returns:
the instance of the factory

setInstance

public static void setInstance(TableReaderFactory factory)
Sets the instance of the factory.

Parameters:
factory - the factory

createTableReader

public static AbstractReader createTableReader(String name,
                                               Table table)
Returns a reader or null from a format name and a table.

Parameters:
name - the name
table - the table
Returns:
a reader or null from a format name and a table.

readTable

public static boolean readTable(String name,
                                Table table)
Reads a table from a resource name.

Parameters:
name - the name
table - the table
Returns:
true of the resource has been successfuly read


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