Completable
, Streamable
public class StreamedResourceGroup extends ResourceGroup implements Completable
AbstractAFPObject.Category, AbstractAFPObject.Type
LOG, SF_CLASS, SF_HEADER_LENGTH
name
triplets
Constructor | Description |
---|---|
StreamedResourceGroup(java.lang.String name,
java.io.OutputStream os) |
Main constructor
|
Modifier and Type | Method | Description |
---|---|---|
void |
addObject(AbstractNamedAFPObject namedObject) |
Adds a resource to the external resource group
|
void |
close() |
Closes this external resource group file
|
java.io.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
|
copySF, truncate, writeChunksToStream, writeObjects
copySF, getName, getNameBytes, getNameLength, setName
writeToStream
addTriplet, addTriplets, getFullyQualifiedName, getTripletDataLength, getTriplets, hasTriplet, hasTriplets, setComment, setFullyQualifiedName, setFullyQualifiedName, setObjectClassification, writeTriplets
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getResourceCount, resourceExists, toString, writeContent, writeEnd, writeStart
public StreamedResourceGroup(java.lang.String name, java.io.OutputStream os)
name
- the resource group nameos
- the outputstreampublic void addObject(AbstractNamedAFPObject namedObject) throws java.io.IOException
addObject
in class ResourceGroup
namedObject
- a named objectjava.io.IOException
- thrown if an I/O exception of some sort has occurred.public void close() throws java.io.IOException
java.io.IOException
- thrown if an I/O exception of some sort has occurred.public java.io.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 1999-2016 The Apache Software Foundation. All Rights Reserved.