Streamable
public class PageSegment extends AbstractNamedAFPObject
AbstractAFPObject.Category, AbstractAFPObject.Type
LOG, SF_CLASS, SF_HEADER_LENGTH
name
triplets
Constructor | Description |
---|---|
PageSegment(java.lang.String name) |
Main constructor
|
Modifier and Type | Method | Description |
---|---|---|
void |
addObject(AbstractAFPObject object) |
Adds a resource object (image/graphic) to this page segment
|
java.util.List |
getObjects() |
Returns a list of objects contained withing this page segment
|
java.lang.String |
toString() |
|
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
copySF, getName, getNameBytes, getNameLength, setName
writeToStream
addTriplet, addTriplets, getFullyQualifiedName, getTripletDataLength, getTriplets, hasTriplet, hasTriplets, setComment, setFullyQualifiedName, setFullyQualifiedName, setObjectClassification, writeTriplets
public PageSegment(java.lang.String name)
name
- the name of this objectpublic java.util.List getObjects()
public void addObject(AbstractAFPObject object)
object
- the resource objec to add to this page segmentprotected void writeStart(java.io.OutputStream os) throws java.io.IOException
writeStart
in class AbstractStructuredObject
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 AbstractStructuredObject
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 java.lang.String toString()
toString
in class AbstractNamedAFPObject
Copyright 1999-2016 The Apache Software Foundation. All Rights Reserved.