|
fop 0.94 | |||||||||
| 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.PDFStream
org.apache.fop.pdf.PDFTTFStream
public class PDFTTFStream
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 java.lang.String |
buildStreamDict(java.lang.String lengthEntry)
Constructs the dictionary for the stream. |
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, outputRawStreamData, setData |
| Methods inherited from class org.apache.fop.pdf.AbstractPDFStream |
|---|
encodeAndWriteStream, encodeStream, getFilterList, outputStreamData, prepareImplicitFilters, setupFilterList |
| Methods inherited from class org.apache.fop.pdf.PDFObject |
|---|
encode, encodeString, encodeText, formatDateTime, formatObject, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, hasObjectNumber, makeReference, referencePDF, setDocument, setObjectNumber, toInlinePDFString, 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 length| Method Detail |
|---|
protected int output(java.io.OutputStream stream)
throws java.io.IOException
output in class PDFStreamstream - the stream to write the PDF to
java.io.IOException - if there is an error writing to the streamPDFObject.output(OutputStream)protected java.lang.String buildStreamDict(java.lang.String lengthEntry)
AbstractPDFStream
buildStreamDict in class AbstractPDFStreamlengthEntry - value for the /Length entry
AbstractPDFStream.buildStreamDict(String)
public 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 0.94 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||