java.lang.Object
org.openpdf.text.pdf.PdfObject
org.openpdf.text.pdf.PdfLiteral
a Literal
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionPdfLiteral(byte[] b) PdfLiteral(int size) PdfLiteral(int type, byte[] b) PdfLiteral(int type, String text) PdfLiteral(String text) -
Method Summary
Modifier and TypeMethodDescriptionlongGetter for property position.intGetter for property posLength.voidtoPdf(PdfWriter writer, OutputStream os) Writes the PDF representation of thisPdfObjectas an array ofbytes to the writer.Methods inherited from class org.openpdf.text.pdf.PdfObject
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, toString, type
-
Constructor Details
-
PdfLiteral
-
PdfLiteral
public PdfLiteral(byte[] b) -
PdfLiteral
public PdfLiteral(int size) -
PdfLiteral
-
PdfLiteral
public PdfLiteral(int type, byte[] b)
-
-
Method Details
-
toPdf
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.
-