public class PRStream extends PdfStream
| Modifier and Type | Field and Description |
|---|---|
protected int |
length |
protected int |
objGen |
protected int |
objNum |
protected int |
offset |
protected PdfReader |
reader |
compressed, ENDSTREAM, inputStream, inputStreamLength, rawLength, ref, SIZESTREAM, STARTSTREAM, streamBytes, writer| Constructor and Description |
|---|
PRStream(PdfReader reader,
byte[] conts) |
PRStream(PdfReader reader,
int offset) |
PRStream(PRStream stream,
PdfDictionary newDic) |
PRStream(PRStream stream,
PdfDictionary newDic,
PdfReader reader) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBytes()
Gets the presentation of this object in a byte array
|
int |
getLength() |
(package private) int |
getObjGen() |
(package private) int |
getObjNum() |
int |
getOffset() |
PdfReader |
getReader() |
void |
setData(byte[] data)
Sets the data associated with the stream
|
void |
setLength(int length) |
void |
setObjNum(int objNum,
int objGen) |
void |
toPdf(PdfWriter writer,
java.io.OutputStream os)
Returns the PDF representation of this
PdfDictionary. |
flateCompress, getRawLength, superToPdf, writeContent, writeLengthcontains, get, getKeys, isCatalog, isDictionaryType, isFont, isOutlineTree, isPage, isPages, merge, mergeDifferent, put, putAll, putDel, putEx, remove, size, toStringcanBeInObjStm, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, typeprotected PdfReader reader
protected int offset
protected int length
protected int objNum
protected int objGen
public PRStream(PRStream stream, PdfDictionary newDic)
public PRStream(PRStream stream, PdfDictionary newDic, PdfReader reader)
public PRStream(PdfReader reader, int offset)
public PRStream(PdfReader reader, byte[] conts)
public void setData(byte[] data)
data - raw data, decrypted and uncompressed.public void setLength(int length)
public int getOffset()
public int getLength()
public PdfReader getReader()
public byte[] getBytes()
PdfObjectpublic void setObjNum(int objNum,
int objGen)
int getObjNum()
int getObjGen()
public void toPdf(PdfWriter writer, java.io.OutputStream os) throws java.io.IOException
PdfDictionaryPdfDictionary.toPdf in class PdfStreamwriter - for backwards compatibilityos - the outputstream to write the bytes to.java.io.IOExceptionPdfDictionary.toPdf(com.lowagie.text.pdf.PdfWriter, java.io.OutputStream)