|
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.Objectorg.sadun.text.ffp.AndCondition
A FlatFileParser.Condition that holds if and only if all the
conditions it groups hold.
| Constructor Summary | |
AndCondition(FlatFileParser.Condition[] conditions)
Create an AndCondition based on an array of conditions |
|
AndCondition(FlatFileParser.Condition c1,
FlatFileParser.Condition c2)
Create an AndCondition based on two conditions |
|
| Method Summary | |
boolean |
holds(int logicalLineCount,
int physicalLineCount,
FlatFileParser.LineReader reader)
The conditions are evaluated in the same order given at construction and if one fails, the method returns false. |
java.lang.String |
toString()
Return a human-readable description of the condition. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public AndCondition(FlatFileParser.Condition c1,
FlatFileParser.Condition c2)
c1 - the first conditionc2 - the second conditionpublic AndCondition(FlatFileParser.Condition[] conditions)
conditions - the array of conditions.| Method Detail |
public boolean holds(int logicalLineCount,
int physicalLineCount,
FlatFileParser.LineReader reader)
throws java.io.IOException
holds in interface FlatFileParser.ConditionlogicalLineCount - 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)public java.lang.String toString()
FlatFileParser.Condition
toString in interface FlatFileParser.Condition
|
Copyright (C) 2003,2004 dr. Cristiano Sadun | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||