Package org.apache.fop.afp.modca
Class ResourceGroup
- All Implemented Interfaces:
Streamable
- Direct Known Subclasses:
StreamedResourceGroup
A Resource Group contains a set of overlays.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.fop.afp.modca.AbstractAFPObject
AbstractAFPObject.Category, AbstractAFPObject.Type -
Field Summary
Fields inherited from class org.apache.fop.afp.modca.AbstractNamedAFPObject
nameFields inherited from class org.apache.fop.afp.modca.AbstractTripletStructuredObject
tripletsFields inherited from class org.apache.fop.afp.modca.AbstractAFPObject
LOG, SF_CLASS, SF_HEADER_LENGTH -
Constructor Summary
ConstructorsConstructorDescriptionResourceGroup(String name) Constructor for the ResourceGroup, this takes a name parameter which must be 8 characters long. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddObject(AbstractNamedAFPObject namedObject) Add this named object to this resource groupintReturns the number of resources contained in this resource grouptoString()voidHelper method to write the contents of the Object.voidwriteEnd(OutputStream os) Helper method to write the end of the Object.voidHelper method to write the start of the Object.Methods inherited from class org.apache.fop.afp.modca.AbstractNamedAFPObject
copySF, getName, getNameBytes, getNameLength, setNameMethods inherited from class org.apache.fop.afp.modca.AbstractTripletStructuredObject
addTriplet, addTriplets, getFullyQualifiedName, getTripletDataLength, getTriplets, hasTriplet, hasTriplets, setComment, setFullyQualifiedName, setFullyQualifiedName, setObjectClassification, writeTripletsMethods inherited from class org.apache.fop.afp.modca.AbstractStructuredObject
writeToStreamMethods inherited from class org.apache.fop.afp.modca.AbstractAFPObject
copySF, truncate, writeChunksToStream, writeObjects
-
Constructor Details
-
ResourceGroup
Constructor for the ResourceGroup, this takes a name parameter which must be 8 characters long.- Parameters:
name- the resource group name
-
-
Method Details
-
addObject
Add this named object to this resource group- Parameters:
namedObject- a named object- Throws:
IOException- thrown if an I/O exception of some sort has occurred.
-
getResourceCount
public int getResourceCount()Returns the number of resources contained in this resource group- Returns:
- the number of resources contained in this resource group
-
writeStart
Helper method to write the start of the Object.- Overrides:
writeStartin classAbstractStructuredObject- Parameters:
os- The stream to write to- Throws:
IOException- throws an I/O exception if one occurred
-
writeContent
Helper method to write the contents of the Object.- Overrides:
writeContentin classAbstractStructuredObject- Parameters:
os- The stream to write to- Throws:
IOException- throws an I/O exception if one occurred
-
writeEnd
Helper method to write the end of the Object.- Overrides:
writeEndin classAbstractStructuredObject- Parameters:
os- The stream to write to- Throws:
IOException- an I/O exception if one occurred
-
toString
- Overrides:
toStringin classAbstractNamedAFPObject
-