|
Copyright (C) 2003,2004 dr. Cristiano Sadun | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sadun.text.ffp.NotCondition
A FlatFileParser.Condition
that holds if and only if the
condition passed at construction does not hold.
Constructor Summary | |
NotCondition(FlatFileParser.Condition condition)
Create a condition that negates the given one. |
Method Summary | |
boolean |
holds(int logicalLineCount,
int physicalLineCount,
FlatFileParser.LineReader reader)
The condition given at construction is evaluated: if it fails, this condition holds; otherwise not. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.sadun.text.ffp.FlatFileParser.Condition |
toString |
Constructor Detail |
public NotCondition(FlatFileParser.Condition condition)
condition
- the condition to negate.Method Detail |
public boolean holds(int logicalLineCount, int physicalLineCount, FlatFileParser.LineReader reader) throws java.io.IOException
holds
in interface FlatFileParser.Condition
logicalLineCount
- the logical lines read so farphysicalLineCount
- the physical lines read so farreader
- an object allowing to read lines on the file
java.io.IOException
- if a I/O problem arises when reading linesFlatFileParser.Condition.holds(int, int, org.sadun.text.ffp.FlatFileParser.LineReader)
|
Copyright (C) 2003,2004 dr. Cristiano Sadun | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |