java.lang.Object
com.lowagie.text.pdf.PdfObject
com.lowagie.text.pdf.PdfDictionary
com.lowagie.text.pdf.PdfStream
com.lowagie.text.pdf.PRStream
Deprecated.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intDeprecated.protected intDeprecated.protected intDeprecated.protected intDeprecated.protected PdfReaderDeprecated.Fields inherited from class com.lowagie.text.pdf.PdfStream
BEST_COMPRESSION, BEST_SPEED, compressed, compressionLevel, DEFAULT_COMPRESSION, inputStream, inputStreamLength, NO_COMPRESSION, rawLength, ref, streamBytes, writer -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Deprecated.Creates a new PDF stream object that will replace a stream in a existing PDF file.Deprecated.PRStream(PRStream stream, PdfDictionary newDic) Deprecated.PRStream(PRStream stream, PdfDictionary newDic, PdfReader reader) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]getBytes()Deprecated.Gets the presentation of this object in a byte arrayintDeprecated.intDeprecated.Deprecated.voidsetData(byte[] data) Deprecated.Sets the data associated with the streamvoidsetData(byte[] data, boolean compress) Deprecated.Sets the data associated with the stream, either compressed or uncompressed.voidsetData(byte[] data, boolean compress, int compressionLevel) Deprecated.Sets the data associated with the stream, either compressed or uncompressed.voidsetLength(int length) Deprecated.voidsetObjNum(int objNum, int objGen) Deprecated.voidtoPdf(PdfWriter writer, OutputStream os) Deprecated.Writes the PDF representation of thisPdfDictionaryas an array ofbyteto the givenOutputStream.Methods inherited from class com.lowagie.text.pdf.PdfStream
flateCompress, flateCompress, getRawLength, superToPdf, toString, writeContent, writeLengthMethods inherited from class com.lowagie.text.pdf.PdfDictionary
clear, contains, get, getAsArray, getAsBoolean, getAsDict, getAsIndirectObject, getAsName, getAsNumber, getAsStream, getAsString, getDirectObject, getKeys, getKeysAndValues, isCatalog, isFont, isOutlineTree, isPage, isPages, merge, mergeDifferent, put, putAll, putEx, remove, sizeMethods inherited from class com.lowagie.text.pdf.PdfObject
canBeInObjStm, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, type
-
Field Details
-
reader
Deprecated. -
offset
protected int offsetDeprecated. -
length
protected int lengthDeprecated. -
objNum
protected int objNumDeprecated. -
objGen
protected int objGenDeprecated.
-
-
Constructor Details
-
PRStream
Deprecated. -
PRStream
Deprecated. -
PRStream
Deprecated. -
PRStream
Deprecated. -
PRStream
Deprecated.Creates a new PDF stream object that will replace a stream in a existing PDF file.- Parameters:
reader- the reader that holds the existing PDFconts- the new contentcompressionLevel- the compression level for the content- Since:
- 2.1.3 (replacing the existing constructor without param compressionLevel)
-
-
Method Details
-
setData
public void setData(byte[] data, boolean compress) Deprecated.Sets the data associated with the stream, either compressed or uncompressed. Note that the data will never be compressed if Document.compress is set to false.- Parameters:
data- raw data, decrypted and uncompressed.compress- true if you want the stream to be compressed.- Since:
- iText 2.1.1
-
setData
public void setData(byte[] data, boolean compress, int compressionLevel) Deprecated.Sets the data associated with the stream, either compressed or uncompressed. Note that the data will never be compressed if Document.compress is set to false.- Parameters:
data- raw data, decrypted and uncompressed.compress- true if you want the stream to be compressed.compressionLevel- a value between -1 and 9 (ignored if compress == false)- Since:
- iText 2.1.3
-
setData
public void setData(byte[] data) Deprecated.Sets the data associated with the stream- Parameters:
data- raw data, decrypted and uncompressed.
-
getOffset
public int getOffset()Deprecated. -
getLength
public int getLength()Deprecated. -
setLength
public void setLength(int length) Deprecated. -
getReader
Deprecated. -
getBytes
public byte[] getBytes()Deprecated.Description copied from class:PdfObjectGets the presentation of this object in a byte array -
setObjNum
public void setObjNum(int objNum, int objGen) Deprecated. -
toPdf
Deprecated.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- on error- See Also:
-