com.pushtotest.tool.datasource
Class Tsv

java.lang.Object
  extended by com.pushtotest.tool.datasource.Xsv
      extended by com.pushtotest.tool.datasource.Tsv
All Implemented Interfaces:
Datasource

public class Tsv
extends Xsv

This is an implementation of a Datasource that allows you to access Tab Separated Values Files.


Field Summary
 
Fields inherited from class com.pushtotest.tool.datasource.Xsv
after, before, colcount, columns, currentrow, db, first, firstRowIsColumns, last, lineTerminator, rowcount
 
Constructor Summary
Tsv()
          Default constructor allows you to set options on the parser prior to parsing the file.
Tsv(java.io.File file)
          Constructor for building a Tsv Datasource with a File object.
Tsv(java.lang.String path)
          Constructor for building a Tsv Datasource with a path to a file.
 
Method Summary
 java.lang.String separator()
          The string that contains the characters that are used as separators.
 
Methods inherited from class com.pushtotest.tool.datasource.Xsv
columnCount, getBoolean, getBoolean, getDouble, getDouble, getDoubleData, getFirstRowIsColumnNames, getFloat, getFloat, getInt, getInt, getIntData, getLineTeminator, getLong, getLong, getRawData, getString, getString, isAfterLast, isBeforeFirst, isFirst, isLast, next, parse, parse, setFirstRowIsColumnNames, setLineTerminator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tsv

public Tsv()
Default constructor allows you to set options on the parser prior to parsing the file.


Tsv

public Tsv(java.io.File file)
    throws java.io.IOException
Constructor for building a Tsv Datasource with a File object.

Parameters:
file - The file to open and parse for TSV data.
Throws:
java.io.IOException

Tsv

public Tsv(java.lang.String path)
    throws java.io.IOException
Constructor for building a Tsv Datasource with a path to a file.

Parameters:
path - The path to a file to open and parse for TSV data.
Throws:
java.io.IOException
Method Detail

separator

public java.lang.String separator()
The string that contains the characters that are used as separators.

Specified by:
separator in class Xsv
Returns:
Returns the string that should be used as the separator tokens.