com.etymon.pj.object
Class PjBoolean
java.lang.Object
|
+--com.etymon.pj.object.BaseObject
|
+--com.etymon.pj.object.PjObject
|
+--com.etymon.pj.object.PjBoolean
- All Implemented Interfaces:
- java.lang.Cloneable
- public class PjBoolean
- extends PjObject
A representation of the PDF Boolean type.
|
Constructor Summary |
PjBoolean(boolean b)
Creates a Boolean object. |
|
Method Summary |
java.lang.Object |
clone()
Returns a deep copy of this object. |
boolean |
equals(java.lang.Object obj)
Compares two PjBoolean objects for equality. |
boolean |
getBoolean()
Returns the Boolean value of this object. |
long |
writePdf(java.io.OutputStream os)
Writes this Boolean to a stream in PDF format. |
| Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TRUE
public static final PjBoolean TRUE
FALSE
public static final PjBoolean FALSE
PjBoolean
public PjBoolean(boolean b)
- Creates a Boolean object.
- Parameters:
b - the Boolean value to initialize this object to.
getBoolean
public boolean getBoolean()
- Returns the Boolean value of this object.
- Returns:
- the Boolean value of this object.
writePdf
public long writePdf(java.io.OutputStream os)
throws java.io.IOException
- Writes this Boolean to a stream in PDF format.
- Overrides:
writePdf in class BaseObject
- Parameters:
os - the stream to write to.- Returns:
- the number of bytes written.
- Throws:
java.io.IOException - if an I/O error occurs.
clone
public java.lang.Object clone()
- Returns a deep copy of this object.
- Overrides:
clone in class BaseObject
- Returns:
- a deep copy of this object.
equals
public boolean equals(java.lang.Object obj)
- Compares two PjBoolean objects for equality.
- Overrides:
equals in class java.lang.Object
- Parameters:
obj - the reference object to compare to.- Returns:
- true if this object is the same as obj, false
otherwise.