Save This Page
Home » iText-src-2.1.3 » com.lowagie » text » pdf » [javadoc | source]
com.lowagie.text.pdf
public class: PRStream [javadoc | source]
java.lang.Object
   com.lowagie.text.pdf.PdfObject
      com.lowagie.text.pdf.PdfDictionary
         com.lowagie.text.pdf.PdfStream
            com.lowagie.text.pdf.PRStream
Field Summary
protected  PdfReader reader     
protected  int offset     
protected  int length     
protected  int objNum     
protected  int objGen     
Fields inherited from com.lowagie.text.pdf.PdfStream:
DEFAULT_COMPRESSION,  NO_COMPRESSION,  BEST_SPEED,  BEST_COMPRESSION,  compressed,  compressionLevel,  streamBytes,  inputStream,  ref,  inputStreamLength,  writer,  rawLength,  STARTSTREAM,  ENDSTREAM,  SIZESTREAM
Fields inherited from com.lowagie.text.pdf.PdfDictionary:
FONT,  OUTLINES,  PAGE,  PAGES,  CATALOG,  hashMap
Fields inherited from com.lowagie.text.pdf.PdfObject:
BOOLEAN,  NUMBER,  STRING,  NAME,  ARRAY,  DICTIONARY,  STREAM,  NULL,  INDIRECT,  NOTHING,  TEXT_PDFDOCENCODING,  TEXT_UNICODE,  bytes,  type,  indRef
Constructor:
 public PRStream(PRStream stream,
    PdfDictionary newDic) 
 public PRStream(PdfReader reader,
    int offset) 
 public PRStream(PdfReader reader,
    byte[] conts) 
 public PRStream(PRStream stream,
    PdfDictionary newDic,
    PdfReader reader) 
 public PRStream(PdfReader reader,
    byte[] conts,
    int compressionLevel) 
    Creates a new PDF stream object that will replace a stream in a existing PDF file.
    Parameters:
    reader - the reader that holds the existing PDF
    conts - the new content
    compressionLevel - the compression level for the content
    since: 2.1.3 - (replacing the existing constructor without param compressionLevel)
Method from com.lowagie.text.pdf.PRStream Summary:
getBytes,   getLength,   getObjGen,   getObjNum,   getOffset,   getReader,   setData,   setData,   setData,   setLength,   setObjNum,   toPdf
Methods from com.lowagie.text.pdf.PdfStream:
flateCompress,   flateCompress,   getRawLength,   superToPdf,   toPdf,   toString,   writeContent,   writeLength
Methods from 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,   toPdf,   toString
Methods from com.lowagie.text.pdf.PdfObject:
canBeInObjStm,   getBytes,   getIndRef,   isArray,   isBoolean,   isDictionary,   isIndirect,   isName,   isNull,   isNumber,   isStream,   isString,   length,   setContent,   setIndRef,   toPdf,   toString,   type
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.lowagie.text.pdf.PRStream Detail:
 public byte[] getBytes() 
 public int getLength() 
 int getObjGen() 
 int getObjNum() 
 public int getOffset() 
 public PdfReader getReader() 
 public  void setData(byte[] data) 
    Sets the data associated with the stream
 public  void setData(byte[] data,
    boolean compress) 
    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.
 public  void setData(byte[] data,
    boolean compress,
    int compressionLevel) 
    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.
 public  void setLength(int length) 
 public  void setObjNum(int objNum,
    int objGen) 
 public  void toPdf(PdfWriter writer,
    OutputStream os) throws IOException