org.apache.fop.pdf
Class PDFT1Stream
java.lang.Object
|
+--org.apache.fop.pdf.PDFObject
|
+--org.apache.fop.pdf.AbstractPDFStream
|
+--org.apache.fop.pdf.PDFT1Stream
- public class PDFT1Stream
- extends AbstractPDFStream
Special PDFStream for embedding Type 1 fonts.
Method Summary |
protected java.lang.String |
buildStreamDict(java.lang.String lengthEntry)
Constructs the dictionary for the stream. |
protected int |
getSizeHint()
Returns a value that hints at the size of the encoded 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 |
protected void |
outputRawStreamData(java.io.OutputStream out)
Sends the raw stream data to the target OutputStream. |
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.PDFObject |
encode, encodeString, encodeText, formatDateTime, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, hasObjectNumber, referencePDF, setDocument, setObjectNumber, toPDF, toPDFString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PDFT1Stream
public PDFT1Stream()
getSizeHint
protected int getSizeHint()
throws java.io.IOException
- Description copied from class:
AbstractPDFStream
- Returns a value that hints at the size of the encoded stream. This is
used to optimize buffer allocation so fewer buffer reallocations are
necessary.
- Overrides:
getSizeHint
in class AbstractPDFStream
- See Also:
AbstractPDFStream.getSizeHint()
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
- Overrides:
output
in class AbstractPDFStream
- See Also:
PDFObject.output(OutputStream)
buildStreamDict
protected java.lang.String buildStreamDict(java.lang.String lengthEntry)
- Description copied from class:
AbstractPDFStream
- Constructs the dictionary for the stream. Override this method if you
need additional entries.
- Overrides:
buildStreamDict
in class AbstractPDFStream
- See Also:
AbstractPDFStream.buildStreamDict(String)
outputRawStreamData
protected void outputRawStreamData(java.io.OutputStream out)
throws java.io.IOException
- Description copied from class:
AbstractPDFStream
- Sends the raw stream data to the target OutputStream.
- Overrides:
outputRawStreamData
in class AbstractPDFStream
- See Also:
PDFStream.outputRawStreamData(OutputStream)
setData
public void setData(PFBData pfb)
throws java.io.IOException
- Used to set the PFBData object that represents the embeddable Type 1
font.
- Parameters:
pfb
- The PFB file- Throws:
java.io.IOException
- in case of an I/O problem
Copyright 1999-2006 The Apache Software Foundation. All Rights Reserved.