Package com.lowagie.text.pdf
Class PdfEFStream
java.lang.Object
com.lowagie.text.pdf.PdfObject
com.lowagie.text.pdf.PdfDictionary
com.lowagie.text.pdf.PdfStream
com.lowagie.text.pdf.PdfEFStream
Extends PdfStream and should be used to create Streams for Embedded Files
(file attachments).
- Since:
- 2.1.3
-
Field Summary
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
ConstructorsConstructorDescriptionPdfEFStream(byte[] fileStore) Creates a Stream object using a byte arrayPdfEFStream(InputStream in, PdfWriter writer) Creates a Stream object using an InputStream and a PdfWriter object -
Method Summary
Modifier and TypeMethodDescriptionvoidtoPdf(PdfWriter writer, OutputStream os) 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
contains, get, getAsArray, getAsBoolean, getAsDict, getAsIndirectObject, getAsName, getAsNumber, getAsStream, getAsString, getDirectObject, getKeys, isCatalog, isFont, isOutlineTree, isPage, isPages, merge, mergeDifferent, put, putAll, putEx, remove, sizeMethods inherited from class com.lowagie.text.pdf.PdfObject
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, type
-
Constructor Details
-
PdfEFStream
Creates a Stream object using an InputStream and a PdfWriter object- Parameters:
in- the InputStream that will be read to get the Stream objectwriter- the writer to which the stream will be added
-
PdfEFStream
public PdfEFStream(byte[] fileStore) Creates a Stream object using a byte array- Parameters:
fileStore- the bytes for the stream
-
-
Method Details
-
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- See Also:
-