com.java4less.ocr.docparser.data
Class DocumentSet

java.lang.Object
  extended by com.java4less.ocr.docparser.data.DocumentSet

public class DocumentSet
extends java.lang.Object

set of documents contained in a file


Constructor Summary
DocumentSet()
           
 
Method Summary
 void addDocument(Document doc)
          add document to the set
 int getCount()
          number of documents in the set
 Document getDocument(int index)
          get document at position index
 java.lang.String toXml()
          convert the document set to xml
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentSet

public DocumentSet()
Method Detail

getCount

public int getCount()
number of documents in the set

Returns:

addDocument

public void addDocument(Document doc)
add document to the set

Parameters:
doc -

getDocument

public Document getDocument(int index)
get document at position index

Parameters:
index -
Returns:

toXml

public java.lang.String toXml()
                       throws java.lang.Exception
convert the document set to xml

Throws:
java.lang.Exception