org.apache.fop.render.afp.modca

Class AbstractAFPObject

Known Direct Subclasses:
AbstractDescriptor, AbstractNamedAFPObject, ImageCellPosition, ImageContent, ImageDataDescriptor, ImageInputDescriptor, ImageOutputControl, ImageRasterData, ImageSegment, ImageSizeParameter, MapCodedFont, MapPageOverlay, NoOperation, ObjectAreaPosition, PresentationTextData, TagLogicalElement

public abstract class AbstractAFPObject
extends java.lang.Object

This is the base class for all data stream objects. Page objects are responsible for building and generating the binary datastream in an AFP format.

Field Summary

protected static Log
log
Static logging instance

Method Summary

abstract void
writeDataStream(OutputStream os)
DataStream objects must implement the writeDataStream() method to write its data to the given OutputStream
protected void
writeObjectList(List afpObjects, OutputStream os)
Help method to write a set of AFPObjects to the AFP datastream.

Field Details

log

protected static final Log log
Static logging instance

Method Details

writeDataStream

public abstract void writeDataStream(OutputStream os)
            throws IOException
DataStream objects must implement the writeDataStream() method to write its data to the given OutputStream
Parameters:
os - The outputsteam stream

writeObjectList

protected void writeObjectList(List afpObjects,
                               OutputStream os)
            throws IOException
Help method to write a set of AFPObjects to the AFP datastream.
Parameters:
afpObjects - a list of AFPObjects
os - The stream to write to

Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.