public class PdfNull extends PdfPrimitiveObject
Modifier and Type | Field and Description |
---|---|
static PdfNull |
PDF_NULL |
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 |
---|
PdfNull()
Creates a PdfNull instance.
|
Modifier and Type | Method and Description |
---|---|
protected void |
copyContent(PdfObject from, PdfDocument document)
Copies object content from object 'from'.
|
PdfNull |
copyTo(PdfDocument document)
Copies object to a specified document.
|
PdfNull |
copyTo(PdfDocument document, boolean allowDuplicating)
Copies object to a specified document.
|
boolean |
equals(Object obj) |
protected void |
generateContent() |
byte |
getType()
Gets object type.
|
int |
hashCode() |
PdfNull |
makeIndirect(PdfDocument document)
Marks object to be saved as indirect.
|
PdfNull |
makeIndirect(PdfDocument document, PdfIndirectReference reference)
Marks object to be saved as indirect.
|
protected PdfNull |
newInstance()
Creates new instance of object.
|
String |
toString() |
compareContent, getInternalContent, hasContent, setIndirectReference
checkState, clearState, clone, flush, flush, getIndirectReference, isArray, isBoolean, isDictionary, isFlushed, isIndirect, isIndirectReference, isLiteral, isModified, isName, isNull, isNumber, isStream, isString, release, setModified, setState
public static final PdfNull PDF_NULL
public byte getType()
PdfObject
public PdfNull makeIndirect(PdfDocument document)
makeIndirect
in class PdfObject
document
- a document the indirect reference will belong to.
public PdfNull makeIndirect(PdfDocument document, PdfIndirectReference reference)
makeIndirect
in class PdfPrimitiveObject
document
- a document the indirect reference will belong to.
public PdfNull copyTo(PdfDocument document)
public PdfNull copyTo(PdfDocument document, boolean allowDuplicating)
copyTo
in class PdfObject
document
- document to copy object to.
allowDuplicating
- indicates if to allow copy objects which already have been copied. If object is associated with any indirect reference and allowDuplicating is false then already existing reference will be returned instead of copying object. If allowDuplicating is true then object will be copied and new indirect reference will be assigned.
protected void generateContent()
generateContent
in class PdfPrimitiveObject
protected PdfNull 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–2017 iText Group NV. All rights reserved.