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 PdfStream
BEST_COMPRESSION, compressed, compressionLevel, DEFAULT_COMPRESSION, inputStream, inputStreamLength, NO_COMPRESSION, rawLength, streamBytesFields inherited from class 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 PdfStream
getRawLength, superToPdf, toStringMethods inherited from class PdfDictionary
get, getAsArray, getAsDict, getAsName, getAsNumber, getAsString, getDirectObject, getKeys, isCatalog, isFont, isOutlineTree, isPage, isPages, put, remove, sizeMethods inherited from class 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
-
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:
-