|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.core.io.AbstractPdfProclet.DocumentState
public static class AbstractPdfProclet.DocumentState
Container class for storing state information about the document currently being processed.
| Field Summary | |
|---|---|
protected int |
m_CurrentFiles
the files added since last page break. |
protected boolean |
m_NewPageAdded
whether a new page got added. |
protected int |
m_TotalFiles
the files added so far. |
| Constructor Summary | |
|---|---|
AbstractPdfProclet.DocumentState()
Initializes the state. |
|
| Method Summary | |
|---|---|
void |
addFile()
Increments the file counters. |
void |
contentAdded()
Stores that content was added. |
boolean |
isNewPage()
Returns whether a new page was just added. |
boolean |
newPage(com.itextpdf.text.Document doc)
Adds a new page only if none has been added so far. |
void |
newPageAdded()
Stores that a new page got added. |
int |
numCurrentFiles()
Returns the number of files that have been added since the last page break. |
int |
numTotalFiles()
Returns the number of files that have been added so far. |
void |
resetCurrentFiles()
Resets the counter for the current files. |
String |
toString()
Returns a short representation of the document state. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected boolean m_NewPageAdded
protected int m_TotalFiles
protected int m_CurrentFiles
| Constructor Detail |
|---|
public AbstractPdfProclet.DocumentState()
| Method Detail |
|---|
public boolean newPage(com.itextpdf.text.Document doc)
doc - the document to add the page to
public void newPageAdded()
public void contentAdded()
public boolean isNewPage()
public void addFile()
public void resetCurrentFiles()
public int numTotalFiles()
public int numCurrentFiles()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||