com.java4less.ocr.docparser.sections
Class SectionFixedLength

java.lang.Object
  extended by com.java4less.ocr.docparser.sections.SectionFixedLength
All Implemented Interfaces:
ILengthType

public class SectionFixedLength
extends java.lang.Object
implements ILengthType

length of a section with a constant number of lines


Constructor Summary
SectionFixedLength(int len)
          create section fixed length.
 
Method Summary
 int getLength()
          get number of lines
 boolean isSectionFinished(ParserContext context)
          returns true if the section is completed
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SectionFixedLength

public SectionFixedLength(int len)
create section fixed length.

Parameters:
len - number of lines in the section
Method Detail

isSectionFinished

public boolean isSectionFinished(ParserContext context)
Description copied from interface: ILengthType
returns true if the section is completed

Specified by:
isSectionFinished in interface ILengthType
Returns:

getLength

public int getLength()
get number of lines

Returns: