public abstract class Stream extends PDFObject
Modifier and Type | Method and Description |
---|---|
void |
addFilter(Filter f)
Adds a filter to the stream.
|
protected Dictionary |
createDictionary(int streamLength)
Creates the dictionary for this stream object.
|
byte[] |
getObjectBytes()
Returns the PDF bytes for this stream object, with all current filters
applied.
|
abstract byte[] |
getRawStreamData()
Returns the raw data for the stream.
|
void |
removeFilters()
Removes any filters that were previously added.
|
getGeneration, getNumber, getReference, toPDFBytes
public void addFilter(Filter f)
f
- the filter (null
not permitted).removeFilters()
public void removeFilters()
addFilter(com.orsonpdf.filter.Filter)
public byte[] getObjectBytes() throws java.io.IOException
getObjectBytes
in class PDFObject
java.io.IOException
- if there is a problem writing to the byte array.protected Dictionary createDictionary(int streamLength)
streamLength
- the stream length.public abstract byte[] getRawStreamData()