public final class Document extends AbstractResourceEnvironmentGroupContainer
AbstractAFPObject.Category, AbstractAFPObject.Type
resourceEnvironmentGroup
resourceGroup, started
activeEnvironmentGroup, complete, factory, objects, rotation
name
triplets
LOG, SF_CLASS, SF_HEADER_LENGTH
Constructor and Description |
---|
Document(Factory factory,
java.lang.String name)
Constructor for the document object.
|
Modifier and Type | Method and Description |
---|---|
void |
endDocument()
Method to mark the end of the page group.
|
boolean |
isComplete()
Returns true if this object is complete
|
java.lang.String |
toString() |
protected void |
writeEnd(java.io.OutputStream os)
Helper method to write the end of the Object.
|
protected void |
writeStart(java.io.OutputStream os)
Helper method to write the start of the Object.
|
addPage, addPageGroup, createInvokeMediumMap, getResourceEnvironmentGroup, writeContent
canWrite, getResourceCount, getResourceGroup, hasResources, writeObjects, writeObjects, writeToStream
addObject, createFont, createIncludePageSegment, createLine, createNoOperation, createTagLogicalElement, createText, endPage, endPresentationObject, getActiveEnvironmentGroup, getHeight, getPresentationTextObject, getRotation, getTagLogicalElements, getWidth, setComplete
copySF, getName, getNameBytes, getNameLength, setName
addTriplet, addTriplets, getFullyQualifiedName, getTripletDataLength, getTriplets, hasTriplet, hasTriplets, setComment, setFullyQualifiedName, setObjectClassification, writeTriplets
copySF, truncate, writeChunksToStream
public Document(Factory factory, java.lang.String name)
factory
- the object factoryname
- the name of the documentpublic void endDocument()
public boolean isComplete()
isComplete
in interface Completable
isComplete
in class AbstractPageObject
protected void writeStart(java.io.OutputStream os) throws java.io.IOException
writeStart
in class AbstractStructuredObject
os
- The stream to write tojava.io.IOException
- throws an I/O exception if one occurredprotected void writeEnd(java.io.OutputStream os) throws java.io.IOException
writeEnd
in class AbstractStructuredObject
os
- The stream to write tojava.io.IOException
- an I/O exception if one occurredpublic java.lang.String toString()
toString
in class AbstractNamedAFPObject
Copyright 1999-2012 The Apache Software Foundation. All Rights Reserved.