com.java4less.ocr.docparser
Class Parser

java.lang.Object
  extended by com.java4less.ocr.docparser.Parser

public class Parser
extends java.lang.Object

This class is in charge of converting the text read by the OCR engine into a document.


Constructor Summary
Parser(DocumentDef pDocDef)
          create the parser and set the document definition
 
Method Summary
 DocumentSet parse(java.lang.String text)
          parse document
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Parser

public Parser(DocumentDef pDocDef)
create the parser and set the document definition

Parameters:
pDocDef -
Method Detail

parse

public DocumentSet parse(java.lang.String text)
                  throws DocParseException
parse document

Parameters:
text -
Returns:
set of documents in the file
Throws:
DocParseException