public class ResourceGroup extends AbstractNamedAFPObject
AbstractAFPObject.Category, AbstractAFPObject.TypenametripletsLOG, SF_CLASS, SF_HEADER_LENGTH| Constructor and Description |
|---|
ResourceGroup(String name)
Constructor for the ResourceGroup, this takes a
name parameter which must be 8 characters long.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addObject(AbstractNamedAFPObject namedObject)
Add this named object to this resource group
|
int |
getResourceCount()
Returns the number of resources contained in this resource group
|
String |
toString() |
void |
writeContent(OutputStream os)
Helper method to write the contents of the Object.
|
void |
writeEnd(OutputStream os)
Helper method to write the end of the Object.
|
void |
writeStart(OutputStream os)
Helper method to write the start of the Object.
|
copySF, getName, getNameBytes, getNameLength, setNameaddTriplet, addTriplets, getFullyQualifiedName, getTripletDataLength, getTriplets, hasTriplet, hasTriplets, setComment, setFullyQualifiedName, setFullyQualifiedName, setObjectClassification, writeTripletswriteToStreamcopySF, truncate, writeChunksToStream, writeObjectspublic ResourceGroup(String name)
name - the resource group namepublic void addObject(AbstractNamedAFPObject namedObject) throws IOException
namedObject - a named objectIOException - thrown if an I/O exception of some sort has occurred.public int getResourceCount()
public void writeStart(OutputStream os) throws IOException
writeStart in class AbstractStructuredObjectos - The stream to write toIOException - throws an I/O exception if one occurredpublic void writeContent(OutputStream os) throws IOException
writeContent in class AbstractStructuredObjectos - The stream to write toIOException - throws an I/O exception if one occurredpublic void writeEnd(OutputStream os) throws IOException
writeEnd in class AbstractStructuredObjectos - The stream to write toIOException - an I/O exception if one occurredpublic String toString()
toString in class AbstractNamedAFPObjectCopyright © 2023 Apache Software Foundation. All rights reserved.