|
||||||||||
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.PdfBoolean
public class PdfBoolean
Represents the PDF Boolean object.
Field Summary | |
---|---|
protected boolean |
_b
The Boolean value of this object. |
static PdfBoolean |
FALSE
A PdfBoolean object representing the Boolean
value false . |
static PdfBoolean |
TRUE
A PdfBoolean object representing the Boolean
value true . |
Constructor Summary | |
---|---|
PdfBoolean(boolean b)
Constructs a Boolean object representing a Boolean value. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Compares this instance with another PDF object for equality. |
boolean |
getBoolean()
Returns the Boolean value of this object. |
int |
hashCode()
Returns a hash code for this object. |
static PdfBoolean |
valueOf(boolean b)
Returns a PdfBoolean object with the specified
value. |
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 |
---|
protected boolean _b
public static final PdfBoolean FALSE
PdfBoolean
object representing the Boolean
value false
.
public static final PdfBoolean TRUE
PdfBoolean
object representing the Boolean
value true
.
Constructor Detail |
---|
public PdfBoolean(boolean b)
valueOf(boolean)
method is preferred.
b
- the Boolean value.Method Detail |
---|
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 boolean getBoolean()
public int hashCode()
PdfObject
hashCode
in class PdfObject
public static PdfBoolean valueOf(boolean b)
PdfBoolean
object with the specified
value. This method is normally preferable to PdfBoolean(boolean)
because it avoids
allocating a new instance.
b
- the Boolean value.
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 |