Method Summary |
|
public java.lang.Object | accept(ICOSObjectVisitor visitor) |
public void | addFilter(COSName name) Add a new filter to this. |
public void | addObjectListener(ICOSObjectListener listener) |
public COSStream | asStream() |
public Iterator | basicIterator() |
public void | basicSetDecodedBytes(byte[] newBytes) Set the streams logical content. |
public void | basicSetEncodedBytes(byte[] newBytes) Set the streams physical content. |
protected String | basicToString() |
protected COSObject | copyBasic() |
public COSStream | copyDecodeFirst() A copy of this, bytes decoded. |
public COSObject | copyDeep(Map copied) |
public COSObject | copyShallow() |
protected COSObject | copySubGraph(Map copied) |
public static COSStream | create(COSDictionary dict) Create a new
COSStream .
Parameters: dict - An optional dictionary to be used as the streams dictionary. |
protected byte[] | doDecode() |
protected byte[] | doDecode(COSName filterName, COSDictionary options, byte[] bytes, int offset, int length) Perform the decoding process of the underlying byte stream.
Parameters: filterName - The name of a filter to use for this step. Parameters: options - The options to use for the filter. Parameters: bytes - The bytes to decode. Parameters: offset - The offset to start. Parameters: length - The length to be decoded. |
protected void | doEncode() |
protected byte[] | doEncode(COSName filterName, COSDictionary options, byte[] bytes, int offset, int length) Perform the encoding process of the underlying byte stream.
Parameters: filterName - The name of a filter to use for this step. Parameters: options - The options to use for the filter. Parameters: bytes - The bytes to encode . Parameters: offset - The offset to start. Parameters: length - The length to be encoded. |
public int | getAnyLength() The declared or real length for this. |
public static COSObject | getDecodeParams(COSDictionary dict) The options or an array of options for filtering. |
public static COSDictionary | getDecodeParams(COSDictionary dict, COSName name) The options corresponding to the first occurence of the filter
name . |
public COSObject | getDecodeParams() The options or an array of options for filtering. |
public COSObject | getDecodeParams(COSName name) The options corresponding to the first occurence of the filter
name . |
public byte[] | getDecodedBytes() The unfiltered (logical) stream content. |
public byte[] | getDecodedBytesWritable() |
public COSDictionary | getDict() |
public byte[] | getEncodedBytes() The filtered (physical) stream content. |
public static COSObject | getFilters(COSDictionary dict) Return the filter or the collection of filters for the stream. |
public COSObject | getFilters() Return the filter or the collection of filters for the stream. |
public COSDictionary | getFirstDecodeParam() A dictionary with filter options or the first element of an array of such
dictionaries for each filter. |
public COSName | getFirstFilter() The filter or the first element of the collection of filters for the
stream. |
public int | getLength() |
public static boolean | hasFilter(COSDictionary dict, COSName name) true if the stream hs declared a filter name .
Parameters: name - The name of the filter. |
public boolean | hasFilter(COSName name) true if the stream hs declared a filter name .
Parameters: name - The name of the filter. |
public static boolean | isExternal(COSDictionary dict) true if the stream dictionary contains the F key. |
public boolean | isExternal() true if the stream dictionary contains the F key. |
public Iterator | iterator() |
protected void | parseFKeyedFile() Parse the file referenced by the F key in this stream and set as the
filtered content. |
public void | removeFilters() Remove all filters from this. |
public void | removeObjectListener(ICOSObjectListener listener) |
public void | restoreState(Object object) |
public Object | saveState() |
public void | setDecodedBytes(byte[] newBytes) |
public void | setEncodedBytes(byte[] newBytes) Set the stream physical content. |