Class PDFStream

  • All Implemented Interfaces:
    RMArchiver.Archiving, java.lang.Cloneable

    public class PDFStream
    extends RMObject
    This class represents a PDF stream object.
    • Constructor Detail

      • PDFStream

        public PDFStream​(byte[] bytes,
                         java.util.Map aMap)
        Creates a new stream from the byte array and map.
      • PDFStream

        public PDFStream​(RMData data,
                         java.util.Map aMap)
        Creates a new stream from the data and map.
    • Method Detail

      • getData

        public RMData getData()
        Returns the stream data.
      • getDictionary

        public java.util.Map getDictionary()
        Returns the stream dictionary.
      • addFilter

        public void addFilter​(java.lang.String aName)
      • getBytesEncoded

        public static byte[] getBytesEncoded​(PDFFile pdfFile,
                                             byte[] bytes,
                                             int offset,
                                             int length)
        Returns Flate encoded bytes from the given raw bytes.
      • clone

        public java.lang.Object clone()
        Standard clone implementation.
        Overrides:
        clone in class RMObject
      • writePDF

        public void writePDF​(PDFFile pdfFile)
        Writes a stream to a pdf buffer.