

Public Member Functions | |
| PDFStream () | |
| PDFStream (String type) | |
| void | setDeflate (boolean mode) |
| boolean | getDeflate () |
| OutputStream | getOutputStream () |
| PrintWriter | getWriter () |
| ByteArrayOutputStream | getStream () |
| void | write (OutputStream os) throws IOException |
| void | writeStream (OutputStream os) throws IOException |
Package Attributes | |
| transient ByteArrayOutputStream | buf |
| boolean | deflate |
In PDF, a stream can be compressed using several different methods, or left uncompressed. Here we support both uncompressed, and FlateDecode as it's supported by the java core.
Eric Z. Beard, ericzbeard@hotmail.com
|
|
Constructs a plain stream. By default, the stream will be compressed. |
|
|
Constructs a stream. The supplied type is stored in the stream's header and is used by other objects that extend the PDFStream class (like PDFImage). By default, the stream will be compressed.
|
|
|
Returs true if the stream will be compressed.
|
|
|
Returns the OutputStream that will append to this stream.
|
|
|
This is for extenders, and provides access to the stream.
|
|
|
Creates a PrintWriter that will append to this stream.
|
|
|
|
|
|
Implements gnu::jpdf::PDFObject. Reimplemented in gnu::jpdf::PDFImage. |
|
|
This inserts the Streams length, then the actual stream, finally the end of stream/object markers. This is intended for anyone extending PDFStream, as objects containing streams do no use writeEnd(), and they must be able to write the actual stream.
Reimplemented in gnu::jpdf::PDFImage. |
|
|
This holds the stream's content. |
|
|
True if we will compress the stream in the pdf file |
1.3.9.1