public class ObjectContainer extends AbstractDataObject
AbstractAFPObject.Category, AbstractAFPObject.Type
factory, objectEnvironmentGroup
name
triplets
LOG, SF_CLASS, SF_HEADER_LENGTH
Constructor and Description |
---|
ObjectContainer(Factory factory,
String name)
Main constructor
|
Modifier and Type | Method and Description |
---|---|
void |
setData(byte[] data)
Sets the data for the object container
|
void |
setViewport(AFPDataObjectInfo dataObjectInfo)
Sets the object view port (area position and size).
|
protected void |
writeContent(OutputStream os)
Helper method to write the contents of the Object.
|
protected void |
writeEnd(OutputStream os)
Helper method to write the end of the Object.
|
protected void |
writeStart(OutputStream os)
Helper method to write the start of the Object.
|
getObjectEnvironmentGroup, isComplete, isStarted, setComplete, setStarted
copySF, getName, getNameBytes, getNameLength, setName, toString
addTriplet, addTriplets, getFullyQualifiedName, getTripletDataLength, getTriplets, hasTriplet, hasTriplets, setComment, setFullyQualifiedName, setFullyQualifiedName, setObjectClassification, writeTriplets
writeToStream
copySF, truncate, writeChunksToStream, writeObjects
protected void writeStart(OutputStream os) throws IOException
writeStart
in class AbstractDataObject
os
- The stream to write toIOException
- throws an I/O exception if one occurredprotected void writeContent(OutputStream os) throws IOException
writeContent
in class AbstractDataObject
os
- The stream to write toIOException
- throws an I/O exception if one occurredprotected void writeEnd(OutputStream os) throws IOException
writeEnd
in class AbstractStructuredObject
os
- The stream to write toIOException
- an I/O exception if one occurredpublic void setViewport(AFPDataObjectInfo dataObjectInfo)
setViewport
in class AbstractDataObject
dataObjectInfo
- the object area infopublic void setData(byte[] data)
data
- a byte arrayCopyright © 2025 Apache Software Foundation. All rights reserved.