public class PdfLiteral extends PdfPrimitiveObject
content, directOnly
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 and Description |
---|
PdfLiteral(byte[] content) |
PdfLiteral(int size) |
PdfLiteral(String content) |
Modifier and Type | Method and Description |
---|---|
protected void |
copyContent(PdfObject from, PdfDocument document)
Copies object content from object 'from'.
|
boolean |
equals(Object o) |
protected void |
generateContent() |
int |
getBytesCount() |
long |
getPosition() |
byte |
getType()
Gets object type.
|
int |
hashCode() |
protected PdfObject |
newInstance()
Creates new instance of object.
|
void |
setPosition(long position) |
String |
toString() |
compareContent, getInternalContent, hasContent, makeIndirect, setIndirectReference
checkState, clearState, clone, copyTo, copyTo, flush, flush, getIndirectReference, isArray, isBoolean, isDictionary, isFlushed, isIndirect, isIndirectReference, isLiteral, isModified, isName, isNull, isNumber, isReleaseForbidden, isStream, isString, makeIndirect, release, setModified, setState
public PdfLiteral(byte[] content)
public PdfLiteral(int size)
public PdfLiteral(String content)
public byte getType()
PdfObject
public long getPosition()
public void setPosition(long position)
public int getBytesCount()
protected void generateContent()
generateContent
in class PdfPrimitiveObject
protected PdfObject newInstance()
PdfObject
newInstance
in class PdfObject
protected void copyContent(PdfObject from, PdfDocument document)
PdfObject
copyContent
in class PdfPrimitiveObject
from
- object to copy content from.
document
- document to copy object to.
Copyright © 1998–2021 iText Group NV. All rights reserved.