Copyright (C) 2003,2004 dr. Cristiano Sadun

org.sadun.text.ffp
Class NullCondition

java.lang.Object
  extended byorg.sadun.text.ffp.NullCondition
All Implemented Interfaces:
FlatFileParser.Condition

public class NullCondition
extends java.lang.Object
implements FlatFileParser.Condition

A condition that never holds.

This condition cannot be constructed, but its single instance INSTANCE used instead.

Author:
Cristiano Sadun

Field Summary
static NullCondition INSTANCE
           
 
Method Summary
 boolean holds(int logicalLineCount, int physicalLineCount, FlatFileParser.LineReader reader)
          Return false.
 
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
 

Field Detail

INSTANCE

public static final NullCondition INSTANCE
Method Detail

holds

public boolean holds(int logicalLineCount,
                     int physicalLineCount,
                     FlatFileParser.LineReader reader)
              throws java.io.IOException
Return false.

Specified by:
holds in interface FlatFileParser.Condition
Parameters:
logicalLineCount - the logical lines read so far
physicalLineCount - the physical lines read so far
reader - an object allowing to read lines on the file
Returns:
false.
Throws:
java.io.IOException - if a I/O problem arises when reading lines
See Also:
FlatFileParser.Condition.holds(int, int, org.sadun.text.ffp.FlatFileParser.LineReader)

Copyright (C) 2003,2004 dr. Cristiano Sadun