|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lowagie.text.pdf.PdfObject
com.lowagie.text.pdf.PdfDictionary
com.lowagie.text.pdf.PdfStream
com.lowagie.text.pdf.PdfEFStream
public class PdfEFStream
Extends PdfStream and should be used to create Streams for Embedded Files (file attachments).
Field Summary |
---|
Fields inherited from class com.lowagie.text.pdf.PdfStream |
---|
BEST_COMPRESSION, BEST_SPEED, compressed, compressionLevel, DEFAULT_COMPRESSION, ENDSTREAM, inputStream, inputStreamLength, NO_COMPRESSION, rawLength, ref, SIZESTREAM, STARTSTREAM, streamBytes, writer |
Fields inherited from class com.lowagie.text.pdf.PdfDictionary |
---|
CATALOG, FONT, hashMap, OUTLINES, PAGE, PAGES |
Fields inherited from class com.lowagie.text.pdf.PdfObject |
---|
ARRAY, BOOLEAN, bytes, DICTIONARY, INDIRECT, indRef, NAME, NOTHING, NULL, NUMBER, STREAM, STRING, TEXT_PDFDOCENCODING, TEXT_UNICODE, type |
Constructor Summary | |
---|---|
PdfEFStream(byte[] fileStore)
Creates a Stream object using a byte array |
|
PdfEFStream(java.io.InputStream in,
PdfWriter writer)
Creates a Stream object using an InputStream and a PdfWriter object |
Method Summary | |
---|---|
void |
toPdf(PdfWriter writer,
java.io.OutputStream os)
Writes the PDF representation of this PdfDictionary as an
array of byte to the given OutputStream . |
Methods inherited from class com.lowagie.text.pdf.PdfStream |
---|
flateCompress, flateCompress, getRawLength, superToPdf, toString, writeContent, writeLength |
Methods 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, size |
Methods inherited from class com.lowagie.text.pdf.PdfObject |
---|
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, type |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PdfEFStream(java.io.InputStream in, PdfWriter writer)
in
- the InputStream that will be read to get the Stream objectwriter
- the writer to which the stream will be addedpublic PdfEFStream(byte[] fileStore)
fileStore
- the bytes for the streamMethod Detail |
---|
public void toPdf(PdfWriter writer, java.io.OutputStream os) throws java.io.IOException
PdfDictionary
PdfDictionary
as an
array of byte
to the given OutputStream
.
toPdf
in class PdfStream
writer
- for backwards compatibilityos
- the OutputStream
to write the bytes to.
java.io.IOException
PdfDictionary.toPdf(com.lowagie.text.pdf.PdfWriter, java.io.OutputStream)
|
Hosted by Hostbasket | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |