|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.java4less.ocr.docparser.DocumentDef
public class DocumentDef
This class defines the structure of your text document
Constructor Summary | |
---|---|
DocumentDef()
|
Method Summary | |
---|---|
void |
addSection(SectionDef s)
|
SectionDef |
getDocSecondPageHeader()
document page header. |
SectionDef |
getDocSection(int i)
get section of the document, the first section (header) has index 0 |
java.util.Vector |
getDocSections()
regular sections of the document, for example, document header, detail, footer. |
java.lang.String |
getName()
get the name of the document |
SectionDef |
getPageFooter()
page footer section. |
SectionDef |
getPageheader()
page header section, this section will appear in each page |
void |
loadFromXml(java.lang.String file)
load document from XML file |
void |
saveToXml(java.io.OutputStream os)
write document definition to xml |
void |
setDocSecondPageHeader(SectionDef docPageHeader)
|
void |
setDocSections(java.util.Vector docSections)
|
void |
setName(java.lang.String s)
set the name of the document |
void |
setPageFooter(SectionDef pageFooter)
|
void |
setPageheader(SectionDef pageheader)
page header section, this section will appear in each page |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DocumentDef()
Method Detail |
---|
public void setName(java.lang.String s)
s
- public java.lang.String getName()
public SectionDef getPageheader()
public void setPageheader(SectionDef pageheader)
pageheader
- public SectionDef getDocSecondPageHeader()
public void setDocSecondPageHeader(SectionDef docPageHeader)
public void addSection(SectionDef s)
public java.util.Vector getDocSections()
public SectionDef getDocSection(int i)
i
-
public void setDocSections(java.util.Vector docSections)
public SectionDef getPageFooter()
public void setPageFooter(SectionDef pageFooter)
public void saveToXml(java.io.OutputStream os) throws java.lang.Exception
os
-
java.lang.Exception
public void loadFromXml(java.lang.String file) throws org.xml.sax.SAXException, java.io.IOException
file
-
org.xml.sax.SAXException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |