public abstract class AbstractResourceGroupContainer extends AbstractPageObject
AbstractAFPObject.Category, AbstractAFPObject.Type| Modifier and Type | Field and Description |
|---|---|
protected ResourceGroup |
resourceGroup
the resource group object
|
protected boolean |
started
The container started state
|
activeEnvironmentGroup, complete, factory, invokeMediumMaps, objects, rotationnametripletsLOG, SF_CLASS, SF_HEADER_LENGTH| Constructor and Description |
|---|
AbstractResourceGroupContainer(Factory factory)
Default constructor
|
AbstractResourceGroupContainer(Factory factory,
String name)
Named constructor
|
AbstractResourceGroupContainer(Factory factory,
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 and 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(Collection<AbstractAFPObject> objects,
OutputStream os,
boolean forceWrite)
Writes a collection of
AbstractAFPObjects to the AFP Datastream. |
protected void |
writeObjects(Collection objects,
OutputStream os)
Writes a collection of Streamable to the AFP Datastream.
|
void |
writeToStream(OutputStream os)
DataStream objects must implement the writeToStream()
method to write its data to the given OutputStream
|
addObject, createFont, createIncludePageSegment, createInvokeMediumMap, createLine, createNoOperation, createTagLogicalElement, createText, endPage, endPresentationObject, getActiveEnvironmentGroup, getHeight, getPresentationTextObject, getRotation, getTagLogicalElements, getWidth, isComplete, setComplete, writeContentcopySF, getName, getNameBytes, getNameLength, setName, toStringaddTriplet, addTriplets, getFullyQualifiedName, getTripletDataLength, getTriplets, hasTriplet, hasTriplets, setComment, setFullyQualifiedName, setFullyQualifiedName, setObjectClassification, writeTripletswriteEnd, writeStartcopySF, truncate, writeChunksToStreamprotected boolean started
protected ResourceGroup resourceGroup
public AbstractResourceGroupContainer(Factory factory)
factory - the object factorypublic AbstractResourceGroupContainer(Factory factory, String name)
factory - the object factoryname - the name of this resource containerpublic AbstractResourceGroupContainer(Factory factory, 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(OutputStream os) throws IOException
writeToStream in interface StreamablewriteToStream in class AbstractStructuredObjectos - the outputsteam streamIOException - an I/O exception of some sort has occurred.protected void writeObjects(Collection objects, OutputStream os) throws IOException
writeObjects in class AbstractAFPObjectobjects - a list of AFPObjectsos - The stream to write toIOException - an I/O exception of some sort has occurred.protected void writeObjects(Collection<AbstractAFPObject> objects, OutputStream os, boolean forceWrite) throws IOException
AbstractAFPObjects to the AFP Datastream.objects - a list of AFPObjectsos - The stream to write toforceWrite - true if writing should happen in any caseIOException - an I/O exception of some sort has occurred.protected boolean canWrite(AbstractAFPObject obj)
obj - an AFP objectCopyright © 2023 Apache Software Foundation. All rights reserved.