gshute.ioutil
Class BatchLineSource

java.lang.Object
  |
  +--gshute.ioutil.LineSource
        |
        +--gshute.ioutil.BatchLineSource

public class BatchLineSource
extends LineSource

A BatchLineSource dispenses LineScanners for lines of a disk file.


Fields inherited from class gshute.ioutil.LineSource
currentLine, dataReader, echoOn, echoPolicy, fileName, includedFrom, lineIsValid, lineNumber
 
Constructor Summary
BatchLineSource(java.lang.String fName)
          BatchLineSource(fName) returns a LineSource that dispenses LineScanners for lines of the file named fName.
 
Method Summary
protected  void validateCurrentLine()
          strm.validateCurrentLine() ensures that currentLine is the line at the current position in strm.
 
Methods inherited from class gshute.ioutil.LineSource
advance, current, getFileName, getIncludedFrom, getLineNumber, initialize, more, setEchoOff, setEchoOn, setIncludedFrom
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BatchLineSource

public BatchLineSource(java.lang.String fName)
                throws java.io.FileNotFoundException,
                       java.io.IOException
BatchLineSource(fName) returns a LineSource that dispenses LineScanners for lines of the file named fName.
Method Detail

validateCurrentLine

protected void validateCurrentLine()
                            throws java.io.IOException
strm.validateCurrentLine() ensures that currentLine is the line at the current position in strm. The line at the end of file position is a null object. For a BatchLineSource, a line should be echoed, if necessary, when it is validated.
Overrides:
validateCurrentLine in class LineSource