org.apache.fop.pdf

Class PDFTTFStream

Implemented Interfaces:
PDFWritable

public class PDFTTFStream
extends PDFStream

Special PDFStream for embeddable TrueType fonts.

Field Summary

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

data

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

DATE_FORMAT, log

Constructor Summary

PDFTTFStream(int len)
Main constructor

Method Summary

protected String
buildStreamDict(String lengthEntry)
protected int
output(java.io.OutputStream stream)
Overload the base object method so we don't have to copy byte arrays around so much
void
setData(byte[] data, int size)
Sets the TrueType font data.

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

add, getDataLength, getSizeHint, output, outputRawStreamData, setData

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

Constructor Details

PDFTTFStream

public PDFTTFStream(int len)
Main constructor
Parameters:
len - original length

Method Details

buildStreamDict

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

output

protected int output(java.io.OutputStream stream)
            throws IOException
Overload the base object method so we don't have to copy byte arrays around so much

setData

public void setData(byte[] data,
                    int size)
            throws IOException
Sets the TrueType font data.
Parameters:
data - the font payload
size - size of the payload

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