org.apache.fop.pdf
Class PDFStream
- PDFWritable
Class representing a PDF stream.
A derivative of the PDF Object, a PDF Stream has not only a dictionary
but a stream of PDF commands. The stream of commands is where the real
work is done, the dictionary just provides information like the stream
length.
encode , encodeString , encodeText , formatDateTime , formatObject , getDocument , getDocumentSafely , getGeneration , getObjectID , getObjectNumber , hasObjectNumber , makeReference , output , referencePDF , setDocument , setObjectNumber , toInlinePDFString , toPDF , toPDFString |
data
protected StreamCache data
The stream of PDF commands
PDFStream
public PDFStream()
Create an empty stream object
add
public void add(String s)
Append data to the stream
s
- the string of PDF to add
getDataLength
public int getDataLength()
Returns the size of the content.
setData
public void setData(byte[] data)
throws IOException
Used to set the contents of the PDF stream.
data
- the contents as a byte array
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.