public class ResourceGroup extends AbstractNamedAFPObject
AbstractAFPObject.Category, AbstractAFPObject.Type
name
triplets
LOG, 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, setName
addTriplet, addTriplets, getFullyQualifiedName, getTripletDataLength, getTriplets, hasTriplet, hasTriplets, setComment, setFullyQualifiedName, setFullyQualifiedName, setObjectClassification, writeTriplets
writeToStream
copySF, truncate, writeChunksToStream, writeObjects
public 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 AbstractStructuredObject
os
- The stream to write toIOException
- throws an I/O exception if one occurredpublic void writeContent(OutputStream os) throws IOException
writeContent
in class AbstractStructuredObject
os
- The stream to write toIOException
- throws an I/O exception if one occurredpublic void writeEnd(OutputStream os) throws IOException
writeEnd
in class AbstractStructuredObject
os
- The stream to write toIOException
- an I/O exception if one occurredpublic String toString()
toString
in class AbstractNamedAFPObject
Copyright © 2025 Apache Software Foundation. All rights reserved.