Package com.aowagie.text.pdf
Class PdfLiteral
java.lang.Object
com.aowagie.text.pdf.PdfObject
com.aowagie.text.pdf.PdfLiteral
a Literal
-
Field Summary
FieldsFields inherited from class com.aowagie.text.pdf.PdfObject
ARRAY, BOOLEAN, bytes, DICTIONARY, INDIRECT, NAME, NOTHING, NULL, NUMBER, STREAM, STRING, TEXT_PDFDOCENCODING, TEXT_UNICODE, type
-
Constructor Summary
ConstructorsConstructorDescriptionPdfLiteral
(byte[] b) PdfLiteral
(int size) PdfLiteral
(int type, String text) PdfLiteral
(String text) -
Method Summary
Modifier and TypeMethodDescriptionint
Getter for property position.int
Getter for property posLength.void
toPdf
(PdfWriter writer, OutputStream os) Writes the PDF representation of thisPdfObject
as an array ofbyte
s to the writer.Methods inherited from class com.aowagie.text.pdf.PdfObject
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, setContent, setIndRef, toString, type
-
Field Details
-
position
private int positionHolds value of property position.
-
-
Constructor Details
-
PdfLiteral
-
PdfLiteral
PdfLiteral(byte[] b) -
PdfLiteral
PdfLiteral(int size) -
PdfLiteral
PdfLiteral(int type, String text)
-
-
Method Details
-
toPdf
Description copied from class:PdfObject
Writes the PDF representation of thisPdfObject
as an array ofbyte
s to the writer.- Overrides:
toPdf
in classPdfObject
- Parameters:
writer
- for backwards compatibilityos
- TheOutputStream
to write the bytes to.- Throws:
IOException
- Exception with a I/O error
-
getPosition
public int getPosition()Getter for property position.- Returns:
- Value of property position.
-
getPosLength
public int getPosLength()Getter for property posLength.- Returns:
- Value of property posLength.
-