org.apache.fop.pdf

Interface PDFWritable

Known Implementing Classes:
AbstractPDFStream, PDFAction, PDFAnnotList, PDFArray, PDFCharProcs, PDFCIDFont, PDFCIDFontDescriptor, PDFCIDSystemInfo, PDFCMap, PDFColor, PDFDestination, PDFDests, PDFDictionary, PDFEncoding, PDFEncryptionJCE, PDFFileSpec, PDFFont, PDFFontDescriptor, PDFFontNonBase14, PDFFontTrueType, PDFFontType0, PDFFontType1, PDFFontType3, PDFFormXObject, PDFFunction, PDFGoTo, PDFGoToRemote, PDFGState, PDFICCBasedColorSpace, PDFICCStream, PDFImageXObject, PDFInfo, PDFInternalLink, PDFLink, PDFMetadata, PDFName, PDFNames, PDFNameTreeNode, PDFNull, PDFNumber, PDFNumberTreeNode, PDFNumsArray, PDFObject, PDFOutline, PDFOutputIntent, PDFPage, PDFPageLabels, PDFPages, PDFPathPaint, PDFPattern, PDFRectangle, PDFReference, PDFResourceContext, PDFResources, PDFRoot, PDFShading, PDFStream, PDFT1Stream, PDFText, PDFToUnicodeCMap, PDFTTFStream, PDFUri, PDFXObject, TransitionDictionary

public interface PDFWritable

This interface is implemented by classes that can be serialized to a PDF file either by serializing the object or by writing a indirect reference to the actual object.

Method Summary

void
outputInline(OutputStream out, Writer writer)
Writes a "direct object" (inline object) representation to the stream.

Method Details

outputInline

public void outputInline(OutputStream out,
                         Writer writer)
            throws IOException
Writes a "direct object" (inline object) representation to the stream. A Writer is given for optimized encoding of text content. Since the Writer is buffered, make sure flush() is called before any direct calls to out are made.
Parameters:
out - the OutputStream (for binary content)
writer - the Writer (for text content, wraps the above OutputStream)

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