infovis.table.io
Class TQDTableReader

java.lang.Object
  extended by infovis.io.AbstractReader
      extended by infovis.table.io.AbstractTableReader
          extended by infovis.table.io.CSVTableReader
              extended by infovis.table.io.TQDTableReader

public class TQDTableReader
extends CSVTableReader

Reader of Time Series TQD format for tables.

Version:
$Revision: 1.15 $
Author:
Jean-Daniel Fekete
InfoVis factory arguments:
TableReaderFactory tqd

Constructor Summary
TQDTableReader(InputStream in, String name, Table table)
          Constructor.
 
Method Summary
 boolean load()
          Main method for loading the file.
static boolean load(File file, Table table)
          Loads a file into a table.
 
Methods inherited from class infovis.table.io.CSVTableReader
addField, addLabel, defaultFieldName, getColumnAt, getField, getLabelAt, getSeparator, getSkipLines, isConsideringQuotes, isLabelLinePresent, isTypeLinePresent, nextField, setConsideringQuotes, setLabelLinePresent, setSeparator, setSkipLines, setTypeLinePresent
 
Methods inherited from class infovis.table.io.AbstractTableReader
close, getBuffer, getBufferedReader, getCommentChar, getIn, getTable, ignoreLine, isEof, read, readInt, readLine, readQuoted, setBuffer, setCommentChar, setEof, setTable, skipToEol
 
Methods inherited from class infovis.io.AbstractReader
createColumn, getEncoding, getName, guessFieldType, setEncoding, setIn, setName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TQDTableReader

public TQDTableReader(InputStream in,
                      String name,
                      Table table)
Constructor.

Parameters:
in - the input stream
name - the resource name
table - the table
Method Detail

load

public static boolean load(File file,
                           Table table)
Loads a file into a table.

Parameters:
file - the file
table - the table
Returns:
true if the file has been succesfuly read

load

public boolean load()
Main method for loading the file. The loading may fail at any point, leaving the table in an indefinite state if the methods returns false.

Overrides:
load in class CSVTableReader
Returns:
true if the file has been loaded without error, false otherwise.
See Also:
AbstractReader.load()


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