public class Stream extends Dictionary
| Modifier and Type | Field and Description |
|---|---|
static Name |
COLORSPACE_KEY |
protected boolean |
compressed |
static Name |
CS_KEY |
static Name |
DECODEPARAM_KEY |
static Name |
F_KEY |
static Name |
FILTER_KEY |
static Name |
H_KEY |
static Name |
HEIGHT_KEY |
static Name |
I_KEY |
static Name |
IM_KEY |
static Name |
IMAGEMASK_KEY |
static Name |
INDEXED_KEY |
protected Reference |
pObjectReference |
protected byte[] |
rawBytes |
static Name |
W_KEY |
static Name |
WIDTH_KEY |
entries, FORM_TYPE_KEY, inited, isDeleted, isNew, LENGTH_KEY, library, SUBTYPE_KEY, TYPE_KEY| Constructor and Description |
|---|
Stream(Library l,
java.util.HashMap h,
byte[] rawBytes) |
Stream(Library l,
java.util.HashMap h,
SeekableInputConstrainedWrapper streamInputWrapper)
Create a new instance of a Stream.
|
| Modifier and Type | Method and Description |
|---|---|
java.io.ByteArrayInputStream |
getDecodedByteArrayInputStream()
Gets the decoded Byte stream of the Stream object.
|
byte[] |
getDecodedStreamBytes() |
byte[] |
getDecodedStreamBytes(int presize)
This is similar to getDecodedStreamByteArray(), except that the returned byte[]
is not necessarily exactly sized, and may be larger.
|
protected java.util.List<java.lang.String> |
getFilterNames() |
protected java.util.List<java.lang.String> |
getNormalisedFilterNames() |
Reference |
getPObjectReference()
Gets the parent PObject reference for this stream.
|
byte[] |
getRawBytes() |
protected boolean |
isImageSubtype() |
boolean |
isRawBytesCompressed() |
void |
setPObjectReference(Reference reference)
Sets the PObject referece for this stream.
|
void |
setRawBytes(byte[] rawBytes) |
java.lang.String |
toString()
Return a string description of the object.
|
getEntries, getFloat, getInt, getLibrary, getNumber, getObject, init, isDeleted, isNew, setDeleted, setNewpublic static final Name WIDTH_KEY
public static final Name W_KEY
public static final Name HEIGHT_KEY
public static final Name H_KEY
public static final Name IMAGEMASK_KEY
public static final Name IM_KEY
public static final Name COLORSPACE_KEY
public static final Name CS_KEY
public static final Name DECODEPARAM_KEY
public static final Name FILTER_KEY
public static final Name F_KEY
public static final Name INDEXED_KEY
public static final Name I_KEY
protected byte[] rawBytes
protected boolean compressed
protected Reference pObjectReference
public Stream(Library l, java.util.HashMap h, SeekableInputConstrainedWrapper streamInputWrapper)
l - library containing a hash of all document objectsh - HashMap of parameters specific to the Stream object.streamInputWrapper - Accessor to stream byte datapublic Stream(Library l, java.util.HashMap h, byte[] rawBytes)
public void setPObjectReference(Reference reference)
setPObjectReference in class Dictionaryreference - Reference used to identify this Dictionary in the PDF
document.Dictionary.getPObjectReference()public byte[] getRawBytes()
public void setRawBytes(byte[] rawBytes)
public boolean isRawBytesCompressed()
public Reference getPObjectReference()
getPObjectReference in class DictionarysetPObjectReference(org.icepdf.core.pobjects.Reference)protected boolean isImageSubtype()
public java.io.ByteArrayInputStream getDecodedByteArrayInputStream()
public byte[] getDecodedStreamBytes()
public byte[] getDecodedStreamBytes(int presize)
presize - potential size to associate with byte array.protected java.util.List<java.lang.String> getFilterNames()
protected java.util.List<java.lang.String> getNormalisedFilterNames()
public java.lang.String toString()
toString in class Dictionary