org.apache.fop.render.afp.modca
public final class Document extends AbstractNamedAFPObject
name, nameByteslog| Constructor and Description |
|---|
Document()
Default constructor for the document object.
|
Document(java.lang.String name)
Constructor for the document object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPage(PageObject page)
Adds a page to the document.
|
void |
addPageGroup(PageGroup pageGroup)
Adds a PageGroup to the document.
|
void |
endDocument()
Method to mark the end of the page group.
|
boolean |
isComplete()
Returns an indication if the page group is complete
|
void |
writeDataStream(java.io.OutputStream os)
Accessor method to write the AFP datastream for document.
|
writeObjectListpublic Document()
public Document(java.lang.String name)
name - The name of the documentpublic void addPage(PageObject page)
page - - the Page objectpublic void addPageGroup(PageGroup pageGroup)
pageGroup - the PageGroup objectpublic void endDocument()
public boolean isComplete()
public void writeDataStream(java.io.OutputStream os)
throws java.io.IOException
writeDataStream in class AbstractAFPObjectos - The stream to write tojava.io.IOException - thrown if an I/O exception of some sort has occurredCopyright 1999-2008 The Apache Software Foundation. All Rights Reserved.