sbrt.shell.io
Class FileLineIterator<E>

java.lang.Object
  extended by sbrt.shell.io.FileLineIterator<E>
Type Parameters:
E - the returned type.
All Implemented Interfaces:
java.util.Iterator<E>
Direct Known Subclasses:
SerializedFileIterator, TextFileLineIterator

public abstract class FileLineIterator<E>
extends java.lang.Object
implements java.util.Iterator<E>

This class is used to iterate through the lines of a file.

Author:
This class was written and documented by Jeremiah Wright while in the Wagner lab.

Constructor Summary
FileLineIterator()
           
 
Method Summary
protected static void checkFile(java.lang.String fileName)
          Ensures the provided string is the name of a valid file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 

Constructor Detail

FileLineIterator

public FileLineIterator()
Method Detail

checkFile

protected static void checkFile(java.lang.String fileName)
Ensures the provided string is the name of a valid file.

Parameters:
fileName - the name of the file to check for validity.