jas.io
Class DataFileReader

java.lang.Object
  extended by jas.io.DataFileReader
Direct Known Subclasses:
CSVFileDataReader, XLSFileDataReader

public abstract class DataFileReader
extends java.lang.Object

A reader for customly formatted files.

Title: JAS

Description: Java Agent-based Simulation library

Copyright: Copyright (C) 2002 Michele Sonnessa

Company:

Author:
Michele Sonnessa

Constructor Summary
DataFileReader()
           
DataFileReader(boolean filterNullFields)
           
 
Method Summary
abstract  void close()
           
abstract  boolean eof()
           
 boolean getBool(int column)
           
 boolean getBool(java.lang.String column)
           
 double getDbl(int column)
           
 double getDbl(java.lang.String column)
           
 float getFlt(int column)
           
 float getFlt(java.lang.String column)
           
 int getInt(int column)
           
 int getInt(java.lang.String column)
           
 long getLng(int column)
           
 long getLng(java.lang.String column)
           
 java.lang.String getStr(int column)
           
 java.lang.String getStr(java.lang.String column)
           
 boolean isFilteringNullFields()
           
abstract  boolean moveNext()
           
abstract  void readStructure()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataFileReader

public DataFileReader()

DataFileReader

public DataFileReader(boolean filterNullFields)
Method Detail

close

public abstract void close()

eof

public abstract boolean eof()

getBool

public boolean getBool(int column)

getBool

public boolean getBool(java.lang.String column)

getDbl

public double getDbl(int column)

getDbl

public double getDbl(java.lang.String column)

getFlt

public float getFlt(int column)

getFlt

public float getFlt(java.lang.String column)

getInt

public int getInt(int column)

getInt

public int getInt(java.lang.String column)

getLng

public long getLng(int column)

getLng

public long getLng(java.lang.String column)

getStr

public java.lang.String getStr(int column)

getStr

public java.lang.String getStr(java.lang.String column)

isFilteringNullFields

public boolean isFilteringNullFields()

moveNext

public abstract boolean moveNext()

readStructure

public abstract void readStructure()