com.isti.util
Class DelimiterSeparatedValuesTable

java.lang.Object
  extended bycom.isti.util.BaseValueTableModel
      extended bycom.isti.util.DelimiterSeparatedValuesTable
All Implemented Interfaces:
ValueTableModel

public class DelimiterSeparatedValuesTable
extends BaseValueTableModel
implements ValueTableModel


Constructor Summary
DelimiterSeparatedValuesTable()
           
 
Method Summary
static void main(java.lang.String[] args)
           
 int readAll(DelimiterSeparatedValues input, java.io.BufferedReader br, boolean headerFlag)
          Reads all of the rows.
 void writeAll(DelimiterSeparatedValues output, java.io.Writer w, boolean headerFlag)
          Writes all the rows.
 
Methods inherited from class com.isti.util.BaseValueTableModel
addColumnMapValues, addFixedSizeRow, addReadOnlyColumn, addRow, appendErrorMessageString, clearErrorMessageString, clearLists, clearRows, columnsExist, createColumnMap, createColumnNamesList, createFixedSizeList, createFixedSizeList, createList, createLists, createMap, createRowsList, getColumnClass, getColumnCount, getColumnIndex, getColumnMapKey, getColumnMapValues, getColumnName, getColumnNames, getDefaultColumnName, getErrorMessageFlag, getErrorMessageString, getRawValueAt, getRow, getRowCount, getValueAt, importValues, importValues, isCellEditable, isEditable, isNull, setColumnNames, setColumnNames, setColumnNames, setEditable, setErrorMessageString, setValueAt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.isti.util.ValueTableModel
getColumnClass, getColumnCount, getColumnIndex, getColumnName, getRowCount, getValueAt, importValues, isCellEditable, setValueAt
 

Constructor Detail

DelimiterSeparatedValuesTable

public DelimiterSeparatedValuesTable()
Method Detail

readAll

public int readAll(DelimiterSeparatedValues input,
                   java.io.BufferedReader br,
                   boolean headerFlag)
            throws java.io.IOException
Reads all of the rows. This will attempt to load all of the rows into memory. Any previous rows or error messages are cleared.

Parameters:
input - the input DelimiterSeparatedValues.
br - the BufferedReader.
headerFlag - true if the first row is a header, false otherwise.
Returns:
the number of rows read or 0 if error.
Throws:
java.io.IOException - if I/O error.
See Also:
getErrorMessages

writeAll

public void writeAll(DelimiterSeparatedValues output,
                     java.io.Writer w,
                     boolean headerFlag)
              throws java.io.IOException
Writes all the rows.

Parameters:
output - the output DelimiterSeparatedValues.
w - the writer.
headerFlag - true if the first row is a header, false otherwise.
Throws:
java.io.IOException - if I/O error.

main

public static void main(java.lang.String[] args)