|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.etymon.pjx.PdfObject
com.etymon.pjx.PdfNull
public class PdfNull
Represents the PDF null object.
Field Summary | |
---|---|
static PdfNull |
NULL
A PdfNull object representing the null value. |
Constructor Summary | |
---|---|
PdfNull()
Constructs a null object. |
Method Summary | |
---|---|
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. |
Methods inherited from class com.etymon.pjx.PdfObject |
---|
clone, filter, filterContents, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final PdfNull NULL
PdfNull
object representing the null value.
Constructor Detail |
---|
public PdfNull()
valueOf()
method is preferred.
Method Detail |
---|
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)
PdfObject
equals
in class PdfObject
obj
- the object to compare this instance with.
true
if the PDF objects are equal.public int hashCode()
PdfObject
hashCode
in class PdfObject
public 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
PdfObject
writePdf
in class PdfObject
w
- 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |