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.PDFDictionary

entries, order

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

DATE_FORMAT, log

Constructor Summary

PDFTTFStream(int len)
Main constructor

Method Summary

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

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

add, getBufferOutputStream, getDataLength, getSizeHint, output, outputRawStreamData, setData

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

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

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

get, output, put, put, writeDictionary

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

encode, encodeBinaryToHexString, encodeString, encodeText, formatDateTime, formatDateTime, formatObject, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, output, outputInline, referencePDF, setDocument, setObjectNumber, setParent, toPDF, toPDFString

Constructor Details

PDFTTFStream

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

Method Details

output

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

populateStreamDict

protected void populateStreamDict(Object lengthEntry)
Overrides:
populateStreamDict in interface AbstractPDFStream

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-2008 The Apache Software Foundation. All Rights Reserved.