org.safs.tools.input
Class InputRecordInvalid

java.lang.Object
  extended by org.safs.tools.input.InputRecordInvalid
All Implemented Interfaces:
InputRecordInterface

public class InputRecordInvalid
extends java.lang.Object
implements InputRecordInterface

The mere instance of this object conveys "invalid data" for any function accepting an InputRecordInterface object. This can convey an EOF condition, or other invalid data scenarios. These are calling-function specific.

See Also:
InputRecordInfo

Constructor Summary
InputRecordInvalid()
           
 
Method Summary
 java.lang.String getRecordData()
          Return the actual string data of the input record.
 long getRecordNumber()
          Return the row# or line# of the encapsulated data.
 boolean isValid()
          Returns TRUE if the values for recordnum and recorddata are valid.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputRecordInvalid

public InputRecordInvalid()
Method Detail

getRecordNumber

public long getRecordNumber()
Description copied from interface: InputRecordInterface
Return the row# or line# of the encapsulated data. Values less than 1 indicate no such record or EOF.

Specified by:
getRecordNumber in interface InputRecordInterface
See Also:
InputRecordInterface.getRecordNumber()

getRecordData

public java.lang.String getRecordData()
Description copied from interface: InputRecordInterface
Return the actual string data of the input record. A null value indicates no such record or EOF.

Specified by:
getRecordData in interface InputRecordInterface
See Also:
InputRecordInterface.getRecordData()

isValid

public boolean isValid()
Description copied from interface: InputRecordInterface
Returns TRUE if the values for recordnum and recorddata are valid.

Specified by:
isValid in interface InputRecordInterface
See Also:
InputRecordInterface.isValid()