Completable, StreamableAbstractResourceEnvironmentGroupContainer, PageObjectpublic abstract class AbstractResourceGroupContainer extends AbstractPageObject
AbstractAFPObject.Category, AbstractAFPObject.Type| Modifier and Type | Field | Description |
|---|---|---|
protected ResourceGroup |
resourceGroup |
the resource group object
|
protected boolean |
started |
The container started state
|
LOG, SF_CLASS, SF_HEADER_LENGTHnameactiveEnvironmentGroup, complete, factory, objects, rotationtriplets| Constructor | Description |
|---|---|
AbstractResourceGroupContainer(Factory factory) |
Default constructor
|
AbstractResourceGroupContainer(Factory factory,
java.lang.String name) |
Named constructor
|
AbstractResourceGroupContainer(Factory factory,
java.lang.String name,
int width,
int height,
int rotation,
int widthRes,
int heightRes) |
Construct a new page object for the specified name argument, the page
name should be an 8 character identifier.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected boolean |
canWrite(AbstractAFPObject obj) |
Returns true if this object can be written
|
protected int |
getResourceCount() |
Return the number of resources in this container
|
ResourceGroup |
getResourceGroup() |
Returns the resource group in this resource group container
|
protected boolean |
hasResources() |
Returns true if this resource group container contains resources
|
protected void |
writeObjects(java.util.Collection objects,
java.io.OutputStream os) |
Writes a collection of Streamable to the AFP Datastream.
|
protected void |
writeObjects(java.util.Collection objects,
java.io.OutputStream os,
boolean forceWrite) |
Writes a collection of
AbstractAFPObjects to the AFP Datastream. |
void |
writeToStream(java.io.OutputStream os) |
DataStream objects must implement the writeToStream()
method to write its data to the given OutputStream
|
copySF, truncate, writeChunksToStreamcopySF, getName, getNameBytes, getNameLength, setName, toStringaddObject, createFont, createIncludePageSegment, createLine, createNoOperation, createTagLogicalElement, createText, endPage, endPresentationObject, getActiveEnvironmentGroup, getHeight, getPresentationTextObject, getRotation, getTagLogicalElements, getWidth, isComplete, setComplete, writeContentwriteEnd, writeStartaddTriplet, addTriplets, getFullyQualifiedName, getTripletDataLength, getTriplets, hasTriplet, hasTriplets, setComment, setFullyQualifiedName, setFullyQualifiedName, setObjectClassification, writeTripletsprotected boolean started
protected ResourceGroup resourceGroup
public AbstractResourceGroupContainer(Factory factory)
factory - the object factorypublic AbstractResourceGroupContainer(Factory factory, java.lang.String name)
factory - the object factoryname - the name of this resource containerpublic AbstractResourceGroupContainer(Factory factory, java.lang.String name, int width, int height, int rotation, int widthRes, int heightRes)
factory - the object factoryname - the name of the page.width - the width of the page.height - the height of the page.rotation - the rotation of the page.widthRes - the width resolution of the page.heightRes - the height resolution of the page.protected int getResourceCount()
protected boolean hasResources()
public ResourceGroup getResourceGroup()
public void writeToStream(java.io.OutputStream os)
throws java.io.IOException
writeToStream in interface StreamablewriteToStream in class AbstractStructuredObjectos - the outputsteam streamjava.io.IOException - an I/O exception of some sort has occurred.protected void writeObjects(java.util.Collection objects,
java.io.OutputStream os)
throws java.io.IOException
writeObjects in class AbstractAFPObjectobjects - a list of AFPObjectsos - The stream to write tojava.io.IOException - an I/O exception of some sort has occurred.protected void writeObjects(java.util.Collection objects,
java.io.OutputStream os,
boolean forceWrite)
throws java.io.IOException
AbstractAFPObjects to the AFP Datastream.objects - a list of AFPObjectsos - The stream to write toforceWrite - true if writing should happen in any casejava.io.IOException - an I/O exception of some sort has occurred.protected boolean canWrite(AbstractAFPObject obj)
obj - an AFP objectCopyright 1999-2016 The Apache Software Foundation. All Rights Reserved.