Class PRStream


public class PRStream extends PdfStream
  • 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

      public PdfReader getReader()
    • getBytes

      public byte[] getBytes()
      Description copied from class: PdfObject
      Gets the presentation of this object in a byte array
      Overrides:
      getBytes in class PdfObject
      Returns:
      a byte array
    • toPdf

      public void toPdf(PdfWriter writer, OutputStream os) throws IOException
      Description copied from class: PdfDictionary
      Writes the PDF representation of this PdfDictionary as an array of byte to the given OutputStream.
      Overrides:
      toPdf in class PdfStream
      Parameters:
      writer - for backwards compatibility
      os - the OutputStream to write the bytes to.
      Throws:
      IOException - Exception with a I/O error
      See Also: