public class PageSegment extends AbstractNamedAFPObject
AbstractAFPObject.Category, AbstractAFPObject.Type
name
triplets
LOG, SF_CLASS, SF_HEADER_LENGTH
Constructor and Description |
---|
PageSegment(String name)
Main constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addObject(AbstractAFPObject object)
Adds a resource object (image/graphic) to this page segment
|
List<AbstractAFPObject> |
getObjects()
Returns a list of objects contained withing this page segment
|
String |
toString() |
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.
|
copySF, getName, getNameBytes, getNameLength, setName
addTriplet, addTriplets, getFullyQualifiedName, getTripletDataLength, getTriplets, hasTriplet, hasTriplets, setComment, setFullyQualifiedName, setFullyQualifiedName, setObjectClassification, writeTriplets
writeToStream
copySF, truncate, writeChunksToStream, writeObjects
public PageSegment(String name)
name
- the name of this objectpublic List<AbstractAFPObject> getObjects()
public void addObject(AbstractAFPObject object)
object
- the resource objec to add to this page segmentprotected void writeStart(OutputStream os) throws IOException
writeStart
in class AbstractStructuredObject
os
- The stream to write toIOException
- throws an I/O exception if one occurredprotected void writeContent(OutputStream os) throws IOException
writeContent
in class AbstractStructuredObject
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 String toString()
toString
in class AbstractNamedAFPObject
Copyright © 2025 Apache Software Foundation. All rights reserved.