Package org.apache.fop.afp.modca
Class StreamedResourceGroup
- All Implemented Interfaces:
Completable
,Streamable
A print-file resource group
-
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
name
Fields inherited from class org.apache.fop.afp.modca.AbstractTripletStructuredObject
triplets
Fields inherited from class org.apache.fop.afp.modca.AbstractAFPObject
LOG, SF_CLASS, SF_HEADER_LENGTH
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addObject
(AbstractNamedAFPObject namedObject) Adds a resource to the external resource groupvoid
close()
Closes this external resource group fileReturns the outputstreamboolean
Returns true if this object is completevoid
setComplete
(boolean complete) Sets whether or not this object is complete or notMethods inherited from class org.apache.fop.afp.modca.ResourceGroup
getResourceCount, toString, writeContent, writeEnd, writeStart
Methods inherited from class org.apache.fop.afp.modca.AbstractNamedAFPObject
copySF, getName, getNameBytes, getNameLength, setName
Methods inherited from class org.apache.fop.afp.modca.AbstractTripletStructuredObject
addTriplet, addTriplets, getFullyQualifiedName, getTripletDataLength, getTriplets, hasTriplet, hasTriplets, setComment, setFullyQualifiedName, setFullyQualifiedName, setObjectClassification, writeTriplets
Methods inherited from class org.apache.fop.afp.modca.AbstractStructuredObject
writeToStream
Methods inherited from class org.apache.fop.afp.modca.AbstractAFPObject
copySF, truncate, writeChunksToStream, writeObjects
-
Constructor Details
-
StreamedResourceGroup
Main constructor- Parameters:
name
- the resource group nameos
- the outputstream
-
-
Method Details
-
addObject
Adds a resource to the external resource group- Overrides:
addObject
in classResourceGroup
- Parameters:
namedObject
- a named object- Throws:
IOException
- thrown if an I/O exception of some sort has occurred.
-
close
Closes this external resource group file- Throws:
IOException
- thrown if an I/O exception of some sort has occurred.
-
getOutputStream
Returns the outputstream- Returns:
- the outputstream
-
setComplete
public void setComplete(boolean complete) Sets whether or not this object is complete or not- Specified by:
setComplete
in interfaceCompletable
- Parameters:
complete
- true if this object is complete
-
isComplete
public boolean isComplete()Returns true if this object is complete- Specified by:
isComplete
in interfaceCompletable
- Returns:
- true if this object is complete
-