AsciiDatabase
Class RowOption_select

java.lang.Object
  |
  +--AsciiDatabase.RowOption
        |
        +--AsciiDatabase.RowOption_select
All Implemented Interfaces:
Serializable

final class RowOption_select
extends RowOption

Option to accept the row if a specific ascii string is found at a specific location within the block.

Author:
chris.studholme@utoronto.ca
See Also:
Serialized Form

Field Summary
 int offset
           
 String text
           
 
Constructor Summary
RowOption_select(String optionstring)
           
 
Method Summary
 int hashCode()
           
 boolean rowOK(byte[] brecord)
          Verify that a row can be extracted from a block of data.
 boolean rowOK(String srecord)
          Verify that a row can be extracted from a block of data.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

offset

public int offset

text

public String text
Constructor Detail

RowOption_select

public RowOption_select(String optionstring)
                 throws DatabaseException
Method Detail

rowOK

public boolean rowOK(byte[] brecord)
Description copied from class: RowOption
Verify that a row can be extracted from a block of data.
Overrides:
rowOK in class RowOption
Following copied from class: AsciiDatabase.RowOption
Parameters:
brecord - block of data
Returns:
true if a row can be extracted, false otherwise

rowOK

public boolean rowOK(String srecord)
Description copied from class: RowOption
Verify that a row can be extracted from a block of data.
Overrides:
rowOK in class RowOption
Following copied from class: AsciiDatabase.RowOption
Parameters:
srecord - block of data
Returns:
true if a row can be extracted, false otherwise

hashCode

public int hashCode()
Overrides:
hashCode in class Object