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
-
Field Summary
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
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
copyContent
(PdfObject from, PdfDocument document, ICopyFilter copyFilter) Copies object content from object 'from'.boolean
protected void
int
long
byte
getType()
Gets object type.int
hashCode()
protected PdfObject
Creates new instance of object.void
setPosition
(long position) toString()
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, copyContent, copyTo, copyTo, copyTo, copyTo, flush, flush, getIndirectReference, isArray, isBoolean, isDictionary, isFlushed, isIndirect, isIndirectReference, isLiteral, isModified, isName, isNull, isNumber, isReleaseForbidden, isStream, isString, makeIndirect, release, setModified, setState
-
Constructor Details
-
PdfLiteral
public PdfLiteral(byte[] content) -
PdfLiteral
public PdfLiteral(int size) -
PdfLiteral
-
-
Method Details
-
getType
public byte getType()Description copied from class:PdfObject
Gets object type. -
toString
-
getPosition
public long getPosition() -
setPosition
public void setPosition(long position) -
getBytesCount
public int getBytesCount() -
generateContent
protected void generateContent()- Specified by:
-
generateContent
in classPdfPrimitiveObject
-
equals
-
hashCode
public int hashCode() -
newInstance
Description copied from class:PdfObject
Creates new instance of object.- Specified by:
-
newInstance
in classPdfObject
- Returns:
- new instance of object.
-
copyContent
Description copied from class:PdfObject
Copies object content from object 'from'.- Overrides:
-
copyContent
in classPdfPrimitiveObject
- Parameters:
-
from
- object to copy content from. -
document
- document to copy object to. -
copyFilter
-ICopyFilter
a filter that will apply on dictionaries and array UseNullCopyFilter
for no filtering
-