public class ResourceGroup extends AbstractNamedAFPObject
AbstractAFPObject.Category, AbstractAFPObject.TypenametripletsLOG, SF_CLASS, SF_HEADER_LENGTH| Constructor and Description |
|---|
ResourceGroup(java.lang.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
|
java.lang.String |
toString() |
void |
writeContent(java.io.OutputStream os)
Helper method to write the contents of the Object.
|
void |
writeEnd(java.io.OutputStream os)
Helper method to write the end of the Object.
|
void |
writeStart(java.io.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(java.lang.String name)
name - the resource group namepublic void addObject(AbstractNamedAFPObject namedObject) throws java.io.IOException
namedObject - a named objectjava.io.IOException - thrown if an I/O exception of some sort has occurred.public int getResourceCount()
public void writeStart(java.io.OutputStream os)
throws java.io.IOException
writeStart in class AbstractStructuredObjectos - The stream to write tojava.io.IOException - throws an I/O exception if one occurredpublic void writeContent(java.io.OutputStream os)
throws java.io.IOException
writeContent in class AbstractStructuredObjectos - The stream to write tojava.io.IOException - throws an I/O exception if one occurredpublic void writeEnd(java.io.OutputStream os)
throws java.io.IOException
writeEnd in class AbstractStructuredObjectos - The stream to write tojava.io.IOException - an I/O exception if one occurredpublic java.lang.String toString()
toString in class AbstractNamedAFPObjectCopyright 1999-2022 The Apache Software Foundation. All Rights Reserved.