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, objects, rotation
name
triplets
LOG, SF_CLASS, SF_HEADER_LENGTH
Constructor and 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 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(java.util.Collection<AbstractAFPObject> objects,
java.io.OutputStream os,
boolean forceWrite)
Writes a collection of
AbstractAFPObject s to the AFP Datastream. |
protected void |
writeObjects(java.util.Collection objects,
java.io.OutputStream os)
Writes a collection of Streamable 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
|
addObject, createFont, createIncludePageSegment, createLine, createNoOperation, createTagLogicalElement, createText, endPage, endPresentationObject, getActiveEnvironmentGroup, getHeight, getPresentationTextObject, getRotation, getTagLogicalElements, getWidth, isComplete, setComplete, writeContent
copySF, getName, getNameBytes, getNameLength, setName, toString
addTriplet, addTriplets, getFullyQualifiedName, getTripletDataLength, getTriplets, hasTriplet, hasTriplets, setComment, setFullyQualifiedName, setFullyQualifiedName, setObjectClassification, writeTriplets
writeEnd, writeStart
copySF, truncate, writeChunksToStream
protected 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 Streamable
writeToStream
in class AbstractStructuredObject
os
- 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 AbstractAFPObject
objects
- 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<AbstractAFPObject> objects, java.io.OutputStream os, boolean forceWrite) throws java.io.IOException
AbstractAFPObject
s 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-2017 The Apache Software Foundation. All Rights Reserved.