ru.smartflex.tools.dbf
Class DbfIterator

java.lang.Object
  extended by ru.smartflex.tools.dbf.DbfIterator

public class DbfIterator
extends java.lang.Object

An iterator over xBase file. Reads all file from first record to last record.

Since:
1.00
Author:
galisha

Method Summary
 void closeIterator()
          The method has to be invoked in case when not all records were read.
 int getCurrentRecord()
          The method returns number of current record.
 boolean hasMoreRecords()
          Returns true if the iteration has more records
 DbfRecord nextRecord()
          Returns the next record in the iteration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

hasMoreRecords

public boolean hasMoreRecords()
Returns true if the iteration has more records

Returns:
true if the iteration has more records
Since:
1.00

nextRecord

public DbfRecord nextRecord()
Returns the next record in the iteration.

Returns:
returns the next record in the iteration.
Since:
1.00

closeIterator

public void closeIterator()
The method has to be invoked in case when not all records were read.


getCurrentRecord

public int getCurrentRecord()
The method returns number of current record.

Returns:
current record number
Since:
1.08