public class StreamedResourceGroup extends ResourceGroup implements Completable
AbstractAFPObject.Category, AbstractAFPObject.Type
name
triplets
LOG, SF_CLASS, SF_HEADER_LENGTH
Constructor and Description |
---|
StreamedResourceGroup(String name,
OutputStream os)
Main constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addObject(AbstractNamedAFPObject namedObject)
Adds a resource to the external resource group
|
void |
close()
Closes this external resource group file
|
OutputStream |
getOutputStream()
Returns the outputstream
|
boolean |
isComplete()
Returns true if this object is complete
|
void |
setComplete(boolean complete)
Sets whether or not this object is complete or not
|
getResourceCount, toString, writeContent, writeEnd, writeStart
copySF, getName, getNameBytes, getNameLength, setName
addTriplet, addTriplets, getFullyQualifiedName, getTripletDataLength, getTriplets, hasTriplet, hasTriplets, setComment, setFullyQualifiedName, setFullyQualifiedName, setObjectClassification, writeTriplets
writeToStream
copySF, truncate, writeChunksToStream, writeObjects
public StreamedResourceGroup(String name, OutputStream os)
name
- the resource group nameos
- the outputstreampublic void addObject(AbstractNamedAFPObject namedObject) throws IOException
addObject
in class ResourceGroup
namedObject
- a named objectIOException
- thrown if an I/O exception of some sort has occurred.public void close() throws IOException
IOException
- thrown if an I/O exception of some sort has occurred.public OutputStream getOutputStream()
public void setComplete(boolean complete)
setComplete
in interface Completable
complete
- true if this object is completepublic boolean isComplete()
isComplete
in interface Completable
Copyright © 2025 Apache Software Foundation. All rights reserved.