| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private boolean | |
| private static final Log | |
| private RandomAccess | |
| private RandomAccessReadView | |
| private RandomAccessStreamCache |
| Access | Constructor and Description |
|---|---|
| public | |
| public | COSStream(RandomAccessStreamCache
Stream cache for writing stream data. streamCache)Creates a new stream with an empty dictionary. |
| public | COSStream(RandomAccessStreamCache
Stream cache for writing stream data. streamCache, RandomAccessReadView source for the data to be read randomAccessReadView)Creates a new stream with an empty dictionary. |
| Modifier and Type | Method and Description |
|---|---|
| public void | accept(ICOSVisitor
The object to notify when visiting this object. visitor)Overrides org. visitor pattern double dispatch method. |
| private void | |
| public void | close()
Implements java. Closes this stream and releases any system resources associated with it. |
| public COSInputStream | Returns: InputStream containing decoded stream data.Returns a new InputStream which reads the decoded stream data. |
| public COSInputStream | |
| public OutputStream | Returns: OutputStream for un-encoded stream data.Returns a new OutputStream for writing stream data, using the current filters. |
| public OutputStream | Returns: OutputStream for un-encoded stream data.COSArray or COSName of filters to be used. filters)Returns a new OutputStream for writing stream data, using and the given filters. |
| public InputStream | Returns: InputStream containing raw, encoded PDF stream data.Returns a new InputStream which reads the encoded PDF stream data. |
| public OutputStream | Returns: OutputStream for raw PDF stream data.Returns a new OutputStream for writing encoded PDF data. |
| public RandomAccessRead | Returns: RandomAccessRead containing decoded stream data.Returns a new RandomAccessRead which reads the decoded stream data. |
| private List | |
| public COSBase | Returns: the COSBase object representing the filtersThis will return the filters to apply to the byte stream. |
| public long | |
| private RandomAccessStreamCache | |
| public boolean | Returns: true if the stream contains any dataIndicates whether the stream contains any data or not. |
| public String | Returns: the PDF string representation of the stream contentReturns the contents of the stream as a PDF "text string". |
| closeStreamCache | back to summary |
|---|---|
| private boolean closeStreamCache | |
| isWriting | back to summary |
|---|---|
| private boolean isWriting | |
| LOG | back to summary |
|---|---|
| private static final Log LOG | |
| randomAccess | back to summary |
|---|---|
| private RandomAccess randomAccess | |
| randomAccessReadView | back to summary |
|---|---|
| private RandomAccessReadView randomAccessReadView | |
| streamCache | back to summary |
|---|---|
| private RandomAccessStreamCache streamCache | |
| COSStream | back to summary |
|---|---|
| public COSStream() Creates a new stream with an empty dictionary.
Try to avoid using this constructor because it creates a new scratch file in memory. Instead,
use | |
| COSStream | back to summary |
|---|---|
| public COSStream(RandomAccessStreamCache streamCache) Creates a new stream with an empty dictionary. Data is stored in the given scratch file.
| |
| COSStream | back to summary |
|---|---|
| public COSStream(RandomAccessStreamCache streamCache, RandomAccessReadView randomAccessReadView) throws IOException Creates a new stream with an empty dictionary. Data is read from the given random accessview. Written data is stored in the given scratch file.
| |
| accept | back to summary |
|---|---|
| public void accept(ICOSVisitor visitor) throws IOException Overrides org. Doc from org. visitor pattern double dispatch method.
| |
| checkClosed | back to summary |
|---|---|
| private void checkClosed() throws IOException Throws if the random access backing store has been closed. Helpful for catching cases where a user tries to use a COSStream which has outlived its COSDocument. | |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements java. Doc from java. Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect. As noted in
| |
| createInputStream | back to summary |
|---|---|
| public COSInputStream createInputStream() throws IOException Returns a new InputStream which reads the decoded stream data.
| |
| createInputStream | back to summary |
|---|---|
| public COSInputStream createInputStream(DecodeOptions options) throws IOException | |
| createOutputStream | back to summary |
|---|---|
| public OutputStream createOutputStream() throws IOException Returns a new OutputStream for writing stream data, using the current filters.
| |
| createOutputStream | back to summary |
|---|---|
| public OutputStream createOutputStream(COSBase filters) throws IOException Returns a new OutputStream for writing stream data, using and the given filters.
| |
| createRawInputStream | back to summary |
|---|---|
| public InputStream createRawInputStream() throws IOException Returns a new InputStream which reads the encoded PDF stream data. Experts only!
| |
| createRawOutputStream | back to summary |
|---|---|
| public OutputStream createRawOutputStream() throws IOException Returns a new OutputStream for writing encoded PDF data. Experts only!
| |
| createView | back to summary |
|---|---|
| public RandomAccessRead createView() throws IOException Returns a new RandomAccessRead which reads the decoded stream data.
| |
| getFilterList | back to summary |
|---|---|
| private List Returns the list of filters. | |
| getFilters | back to summary |
|---|---|
| public COSBase getFilters() This will return the filters to apply to the byte stream. The method will return
| |
| getLength | back to summary |
|---|---|
| public long getLength() Returns the length of the encoded stream.
| |
| getStreamCache | back to summary |
|---|---|
| private RandomAccessStreamCache getStreamCache() throws IOException | |
| hasData | back to summary |
|---|---|
| public boolean hasData() Indicates whether the stream contains any data or not.
| |
| toTextString | back to summary |
|---|---|
| public String toTextString() Returns the contents of the stream as a PDF "text string".
| |