Package com.itextpdf.kernel.pdf
Class PdfLiteral
- java.lang.Object
-
- com.itextpdf.kernel.pdf.PdfObject
-
- com.itextpdf.kernel.pdf.PdfPrimitiveObject
-
- com.itextpdf.kernel.pdf.PdfLiteral
-
public class PdfLiteral extends PdfPrimitiveObject
-
-
Field Summary
Fields Modifier and Type Field Description private longposition-
Fields inherited from class com.itextpdf.kernel.pdf.PdfPrimitiveObject
content, directOnly
-
Fields inherited from class com.itextpdf.kernel.pdf.PdfObject
ARRAY, BOOLEAN, DICTIONARY, FLUSHED, FORBID_RELEASE, FREE, INDIRECT_REFERENCE, indirectReference, LITERAL, MODIFIED, MUST_BE_FLUSHED, MUST_BE_INDIRECT, NAME, NULL, NUMBER, ORIGINAL_OBJECT_STREAM, READ_ONLY, READING, STREAM, STRING, UNENCRYPTED
-
-
Constructor Summary
Constructors Modifier Constructor Description privatePdfLiteral()PdfLiteral(byte[] content)PdfLiteral(int size)PdfLiteral(java.lang.String content)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcopyContent(PdfObject from, PdfDocument document, ICopyFilter copyFilter)Copies object content from object 'from'.booleanequals(java.lang.Object o)protected voidgenerateContent()intgetBytesCount()longgetPosition()bytegetType()Gets object type.inthashCode()protected PdfObjectnewInstance()Creates new instance of object.voidsetPosition(long position)java.lang.StringtoString()-
Methods inherited from class com.itextpdf.kernel.pdf.PdfPrimitiveObject
compareContent, getInternalContent, hasContent, makeIndirect, setIndirectReference
-
Methods inherited from class com.itextpdf.kernel.pdf.PdfObject
checkState, clearState, clone, clone, containsIndirectReference, copyContent, copyTo, copyTo, copyTo, copyTo, equalContent, flush, flush, getIndirectReference, isArray, isBoolean, isDictionary, isFlushed, isIndirect, isIndirectReference, isLiteral, isModified, isName, isNull, isNumber, isReleaseForbidden, isStream, isString, makeIndirect, processCopying, processCopying, release, setModified, setState
-
-
-
-
Method Detail
-
getType
public byte getType()
Description copied from class:PdfObjectGets object type.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getPosition
public long getPosition()
-
setPosition
public void setPosition(long position)
-
getBytesCount
public int getBytesCount()
-
generateContent
protected void generateContent()
- Specified by:
generateContentin classPdfPrimitiveObject
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
newInstance
protected PdfObject newInstance()
Description copied from class:PdfObjectCreates new instance of object.- Specified by:
newInstancein classPdfObject- Returns:
- new instance of object.
-
copyContent
protected void copyContent(PdfObject from, PdfDocument document, ICopyFilter copyFilter)
Description copied from class:PdfObjectCopies object content from object 'from'.- Overrides:
copyContentin classPdfPrimitiveObject- Parameters:
from- object to copy content from.document- document to copy object to.copyFilter-ICopyFiltera filter that will apply on dictionaries and array UseNullCopyFilterfor no filtering
-
-