Completable
, Startable
, Streamable
public class ObjectContainer extends AbstractDataObject
AbstractAFPObject.Category, AbstractAFPObject.Type
LOG, SF_CLASS, SF_HEADER_LENGTH
factory, objectEnvironmentGroup
name
triplets
Constructor | Description |
---|---|
ObjectContainer(Factory factory,
java.lang.String name) |
Main constructor
|
Modifier and Type | Method | 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(java.io.OutputStream os) |
Helper method to write the contents of the Object.
|
protected void |
writeEnd(java.io.OutputStream os) |
Helper method to write the end of the Object.
|
protected void |
writeStart(java.io.OutputStream os) |
Helper method to write the start of the Object.
|
copySF, truncate, writeChunksToStream, writeObjects
getObjectEnvironmentGroup, isComplete, isStarted, setComplete, setStarted
copySF, getName, getNameBytes, getNameLength, setName, toString
writeToStream
addTriplet, addTriplets, getFullyQualifiedName, getTripletDataLength, getTriplets, hasTriplet, hasTriplets, setComment, setFullyQualifiedName, setFullyQualifiedName, setObjectClassification, writeTriplets
public ObjectContainer(Factory factory, java.lang.String name)
factory
- the object factoryname
- the name of this object containerprotected void writeStart(java.io.OutputStream os) throws java.io.IOException
writeStart
in class AbstractDataObject
os
- The stream to write tojava.io.IOException
- throws an I/O exception if one occurredprotected void writeContent(java.io.OutputStream os) throws java.io.IOException
writeContent
in class AbstractDataObject
os
- The stream to write tojava.io.IOException
- throws an I/O exception if one occurredprotected void writeEnd(java.io.OutputStream os) throws java.io.IOException
writeEnd
in class AbstractStructuredObject
os
- The stream to write tojava.io.IOException
- 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 1999-2016 The Apache Software Foundation. All Rights Reserved.