public class PdfNull extends PdfObject
| Modifier and Type | Field and Description |
|---|---|
static PdfNull |
NULL
A
PdfNull object representing the null value. |
| Constructor and Description |
|---|
PdfNull()
Constructs a null object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Compares this instance with another PDF object for equality.
|
int |
hashCode()
Returns a hash code for this object.
|
static boolean |
isNull(java.lang.Object obj)
Checks whether an object represents a null value.
|
static PdfNull |
valueOf()
Returns a
PdfNull object. |
protected int |
writePdf(PdfWriter w,
boolean spacing)
Writes this object in PDF format.
|
clone, filter, filterContents, toStringpublic static final PdfNull NULL
PdfNull object representing the null value.public PdfNull()
valueOf() method is preferred.public static boolean isNull(java.lang.Object obj)
equals(Object) in that this returns
true when called with a null
value. This method is useful for examining PDF objects, in
which null and PdfNull should
normally be considered equivalent. For example, if a
dictionary value or an indirect object is
PdfNull, it is equivalent to the object not
existing.obj - the object to examine.true if the object is either
null or an instance of PdfNull;
otherwise false is returned.public boolean equals(java.lang.Object obj)
PdfObjectpublic int hashCode()
PdfObjectpublic static PdfNull valueOf()
PdfNull object. This method is
normally preferable to PdfNull() because
it avoids allocating a new instance.protected int writePdf(PdfWriter w, boolean spacing) throws java.io.IOException
PdfObjectwritePdf in class PdfObjectw - the PdfWriter to write to.spacing - specifies whether to add white-space before
the object. A value of true enables the
addition of white-space. If the object begins with a PDF
delimiter, then this option is ignored and no white-space
is written.java.io.IOException