Package com.itextpdf.text.pdf
Class PdfLiteral
- java.lang.Object
-
- com.itextpdf.text.pdf.PdfObject
-
- com.itextpdf.text.pdf.PdfLiteral
-
- All Implemented Interfaces:
java.io.Serializable
public class PdfLiteral extends PdfObject
a Literal- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private long
position
Holds value of property position.
-
Constructor Summary
Constructors Constructor Description PdfLiteral(byte[] b)
PdfLiteral(int size)
PdfLiteral(int type, byte[] b)
PdfLiteral(int type, java.lang.String text)
PdfLiteral(java.lang.String text)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getPosition()
Getter for property position.int
getPosLength()
Getter for property posLength.void
toPdf(PdfWriter writer, java.io.OutputStream os)
Writes the PDF representation of thisPdfObject
as an array ofbyte
s to the writer.-
Methods inherited from class com.itextpdf.text.pdf.PdfObject
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, toString, type
-
-
-
-
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 thisPdfObject
as an array ofbyte
s to the writer.
-
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.
-
-