jas.io
Class CSVFileDataReader

java.lang.Object
  extended by jas.io.DataFileReader
      extended by jas.io.CSVFileDataReader

public class CSVFileDataReader
extends DataFileReader

A reader for Comma Separated Value formatted files.

Title: JAS

Description: Java Agent-based Simulation library

Copyright: Copyright (C) 2002 Michele Sonnessa

Company:

Author:
Michele Sonnessa

Field Summary
static char DEFAULT_SEPARATION_CHAR
           
 
Constructor Summary
CSVFileDataReader(java.io.File sourceFile)
           
CSVFileDataReader(java.io.File sourceFile, boolean filterNullFields)
           
CSVFileDataReader(java.io.File sourceFile, boolean filterNullFields, char separationChar)
           
CSVFileDataReader(java.io.File sourceFile, char separationChar)
           
CSVFileDataReader(java.lang.String fileName)
           
CSVFileDataReader(java.lang.String fileName, boolean filterNullFields)
           
CSVFileDataReader(java.lang.String fileName, boolean filterNullFields, char separationChar)
           
CSVFileDataReader(java.lang.String fileName, char separationChar)
           
 
Method Summary
 void close()
           
 boolean eof()
           
 boolean moveNext()
           
 void openFile(java.io.File sourceFile)
           
 void openFile(java.lang.String fileName)
           
 void readStructure()
           
 
Methods inherited from class jas.io.DataFileReader
getBool, getBool, getDbl, getDbl, getFlt, getFlt, getInt, getInt, getLng, getLng, getStr, getStr, isFilteringNullFields
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_SEPARATION_CHAR

public static final char DEFAULT_SEPARATION_CHAR
See Also:
Constant Field Values
Constructor Detail

CSVFileDataReader

public CSVFileDataReader(java.io.File sourceFile)

CSVFileDataReader

public CSVFileDataReader(java.io.File sourceFile,
                         boolean filterNullFields)

CSVFileDataReader

public CSVFileDataReader(java.io.File sourceFile,
                         boolean filterNullFields,
                         char separationChar)

CSVFileDataReader

public CSVFileDataReader(java.io.File sourceFile,
                         char separationChar)

CSVFileDataReader

public CSVFileDataReader(java.lang.String fileName)

CSVFileDataReader

public CSVFileDataReader(java.lang.String fileName,
                         boolean filterNullFields)

CSVFileDataReader

public CSVFileDataReader(java.lang.String fileName,
                         boolean filterNullFields,
                         char separationChar)

CSVFileDataReader

public CSVFileDataReader(java.lang.String fileName,
                         char separationChar)
Method Detail

close

public void close()
Specified by:
close in class DataFileReader

eof

public boolean eof()
Specified by:
eof in class DataFileReader

moveNext

public boolean moveNext()
Specified by:
moveNext in class DataFileReader

openFile

public void openFile(java.io.File sourceFile)

openFile

public void openFile(java.lang.String fileName)

readStructure

public void readStructure()
Specified by:
readStructure in class DataFileReader