org.apache.fop.pdf

Class PDFT1Stream

Implemented Interfaces:
PDFWritable

public class PDFT1Stream
extends AbstractPDFStream

Special PDFStream for embedding Type 1 fonts.

Field Summary

Fields inherited from class org.apache.fop.pdf.PDFObject

DATE_FORMAT, log

Method Summary

protected String
buildStreamDict(String lengthEntry)
protected int
getSizeHint()
protected int
output(OutputStream stream)
Overload the base object method so we don't have to copy byte arrays around so much
protected void
outputRawStreamData(OutputStream out)
void
setData(PFBData pfb)
Used to set the PFBData object that represents the embeddable Type 1 font.

Methods inherited from class org.apache.fop.pdf.AbstractPDFStream

buildStreamDict, encodeAndWriteStream, encodeStream, getFilterList, getSizeHint, output, outputRawStreamData, outputStreamData, prepareImplicitFilters, setupFilterList

Methods inherited from class org.apache.fop.pdf.PDFObject

encode, encodeString, encodeText, formatDateTime, formatObject, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, hasObjectNumber, makeReference, output, referencePDF, setDocument, setObjectNumber, toInlinePDFString, toPDF, toPDFString

Method Details

buildStreamDict

protected String buildStreamDict(String lengthEntry)
Overrides:
buildStreamDict in interface AbstractPDFStream

getSizeHint

protected int getSizeHint()
            throws IOException
Overrides:
getSizeHint in interface AbstractPDFStream

output

protected int output(OutputStream stream)
            throws IOException
Overload the base object method so we don't have to copy byte arrays around so much
Overrides:
output in interface AbstractPDFStream

outputRawStreamData

protected void outputRawStreamData(OutputStream out)
            throws IOException
Overrides:
outputRawStreamData in interface AbstractPDFStream

setData

public void setData(PFBData pfb)
            throws IOException
Used to set the PFBData object that represents the embeddable Type 1 font.
Parameters:
pfb - The PFB file

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