Package com.lowagie.text.pdf
Class PdfLiteral
- java.lang.Object
-
- com.lowagie.text.pdf.PdfObject
-
- com.lowagie.text.pdf.PdfLiteral
-
public class PdfLiteral extends PdfObject
a Literal
-
-
Constructor Summary
Constructors Constructor Description PdfLiteral(byte[] b)PdfLiteral(int size)PdfLiteral(int type, byte[] b)PdfLiteral(int type, String text)PdfLiteral(String text)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetPosition()Getter for property position.intgetPosLength()Getter for property posLength.voidtoPdf(PdfWriter writer, OutputStream os)Writes the PDF representation of thisPdfObjectas an array ofbytes to the writer.-
Methods inherited from class com.lowagie.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, OutputStream os) throws IOException
Description copied from class:PdfObjectWrites the PDF representation of thisPdfObjectas an array ofbytes to the writer.- Overrides:
toPdfin classPdfObject- Parameters:
writer- for backwards compatibilityos- TheOutputStreamto write the bytes to.- Throws:
IOException- on error
-
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.
-
-