Package com.aowagie.text.pdf
Class PRStream
java.lang.Object
com.aowagie.text.pdf.PdfObject
com.aowagie.text.pdf.PdfDictionary
com.aowagie.text.pdf.PdfStream
com.aowagie.text.pdf.PRStream
-
Field Summary
Fields inherited from class com.aowagie.text.pdf.PdfStream
BEST_COMPRESSION, compressed, compressionLevel, DEFAULT_COMPRESSION, inputStream, inputStreamLength, NO_COMPRESSION, rawLength, streamBytesFields inherited from class com.aowagie.text.pdf.PdfDictionary
hashMap -
Method Summary
Modifier and TypeMethodDescriptionbyte[]getBytes()Gets the presentation of this object in a byte arrayintintvoidsetData(byte[] data) Sets the data associated with the streamvoidsetLength(int length) voidtoPdf(PdfWriter writer, OutputStream os) Writes the PDF representation of thisPdfDictionaryas an array ofbyteto the givenOutputStream.Methods inherited from class com.aowagie.text.pdf.PdfStream
getRawLength, superToPdf, toStringMethods inherited from class com.aowagie.text.pdf.PdfDictionary
get, getAsArray, getAsDict, getAsName, getAsNumber, getAsString, getDirectObject, getKeys, isCatalog, isFont, isOutlineTree, isPage, isPages, put, remove, sizeMethods inherited from class com.aowagie.text.pdf.PdfObject
getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, setContent, setIndRef, type
-
Method Details
-
setData
public void setData(byte[] data) Sets the data associated with the stream- Parameters:
data- raw data, decrypted and uncompressed.
-
setLength
public void setLength(int length) -
getOffset
public int getOffset() -
getLength
public int getLength() -
getReader
-
getBytes
public byte[] getBytes()Description copied from class:PdfObjectGets the presentation of this object in a byte array -
toPdf
Description copied from class:PdfDictionaryWrites the PDF representation of thisPdfDictionaryas an array ofbyteto the givenOutputStream.- Overrides:
toPdfin classPdfStream- Parameters:
writer- for backwards compatibilityos- theOutputStreamto write the bytes to.- Throws:
IOException- Exception with a I/O error- See Also:
-