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.
void | add(String s) - Append data to the stream
|
OutputStream | getBufferOutputStream() - Returns an OutputStream that can be used to write to the buffer which is used
to build up the PDF stream.
|
int | getDataLength() - Returns the size of the content.
|
protected int | getSizeHint() -
|
protected int | output(OutputStream stream) -
|
protected void | outputRawStreamData(OutputStream out) -
|
void | setData(byte[] data) - Used to set the contents of the PDF stream.
|
encode , encodeBinaryToHexString , encodeString , encodeText , formatDateTime , formatDateTime , formatObject , getDocument , getDocumentSafely , getGeneration , getObjectID , getObjectNumber , getParent , hasObjectNumber , makeReference , output , outputInline , referencePDF , setDocument , setObjectNumber , setParent , 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
getBufferOutputStream
public OutputStream getBufferOutputStream()
throws IOException
Returns an OutputStream that can be used to write to the buffer which is used
to build up the PDF stream.
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-2008 The Apache Software Foundation. All Rights Reserved.