|
fop 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.pdf.PDFObject
org.apache.fop.pdf.AbstractPDFStream
org.apache.fop.pdf.AbstractPDFFontStream
org.apache.fop.pdf.PDFTTFStream
public class PDFTTFStream
Special PDFStream for embeddable TrueType fonts.
Field Summary |
---|
Fields inherited from class org.apache.fop.pdf.PDFObject |
---|
log |
Constructor Summary | |
---|---|
PDFTTFStream(int len)
Main constructor |
Method Summary | |
---|---|
protected int |
getSizeHint()
Returns a value that hints at the size of the encoded stream. |
int |
output(java.io.OutputStream stream)
Overload the base object method so we don't have to copy byte arrays around so much Overload the base object method so we don't have to copy byte arrays around so much Write the PDF represention of this object |
protected void |
outputRawStreamData(java.io.OutputStream out)
Sends the raw stream data to the target OutputStream. |
protected void |
populateStreamDict(java.lang.Object lengthEntry)
Populates the dictionary with all necessary entries for the stream. |
void |
setData(byte[] data,
int size)
Sets the TrueType font data. |
Methods inherited from class org.apache.fop.pdf.AbstractPDFFontStream |
---|
getDefaultFilterName |
Methods inherited from class org.apache.fop.pdf.AbstractPDFStream |
---|
encodeAndWriteStream, encodeStream, get, getDictionary, getFilterList, multipleFiltersAllowed, outputStreamData, prepareImplicitFilters, put, setDocument, setupFilterList |
Methods inherited from class org.apache.fop.pdf.PDFObject |
---|
contentEquals, encode, encodeBinaryToHexString, encodeString, encodeText, formatObject, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, outputInline, referencePDF, setObjectNumber, setParent, toPDF, toPDFString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PDFTTFStream(int len)
len
- original lengthMethod Detail |
---|
protected int getSizeHint() throws java.io.IOException
getSizeHint
in class AbstractPDFStream
java.io.IOException
- in case of an I/O problempublic int output(java.io.OutputStream stream) throws java.io.IOException
output
in class AbstractPDFStream
stream
- the stream to write the PDF to
java.io.IOException
- if there is an error writing to the streamprotected void outputRawStreamData(java.io.OutputStream out) throws java.io.IOException
outputRawStreamData
in class AbstractPDFStream
out
- OutputStream to write to
java.io.IOException
- In case of an I/O problemprotected void populateStreamDict(java.lang.Object lengthEntry)
populateStreamDict
in class AbstractPDFStream
lengthEntry
- value for the /Length entrypublic void setData(byte[] data, int size) throws java.io.IOException
data
- the font payloadsize
- size of the payload
java.io.IOException
- in case of an I/O problem
|
fop 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |