Class PdfLiteral

  • All Implemented Interfaces:
    java.io.Serializable

    public class PdfLiteral
    extends PdfObject
    a Literal
    See Also:
    Serialized Form
    • Field Detail

      • position

        private long position
        Holds value of property position.
    • Constructor Detail

      • PdfLiteral

        public PdfLiteral​(java.lang.String text)
      • PdfLiteral

        public PdfLiteral​(byte[] b)
      • PdfLiteral

        public PdfLiteral​(int size)
      • PdfLiteral

        public PdfLiteral​(int type,
                          java.lang.String text)
      • PdfLiteral

        public PdfLiteral​(int type,
                          byte[] b)
    • Method Detail

      • toPdf

        public void toPdf​(PdfWriter writer,
                          java.io.OutputStream os)
                   throws java.io.IOException
        Description copied from class: PdfObject
        Writes the PDF representation of this PdfObject as an array of bytes to the writer.
        Overrides:
        toPdf in class PdfObject
        Parameters:
        writer - for backwards compatibility
        os - The OutputStream to write the bytes to.
        Throws:
        java.io.IOException
      • getPosition

        public long getPosition()
        Getter for property position.
        Returns:
        Value of property position.
      • getPosLength

        public int getPosLength()
        Getter for property posLength.
        Returns:
        Value of property posLength.