public final class COSBoolean extends COSBase
Modifier and Type | Field and Description |
---|---|
static COSBoolean |
FALSE
The PDF false value.
|
static byte[] |
FALSE_BYTES
The false boolean token.
|
static COSBoolean |
TRUE
The PDF true value.
|
static byte[] |
TRUE_BYTES
The true boolean token.
|
private boolean |
value |
Modifier | Constructor and Description |
---|---|
private |
COSBoolean(boolean aValue)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
accept(ICOSVisitor visitor)
visitor pattern double dispatch method.
|
static COSBoolean |
getBoolean(boolean value)
This will get the boolean value.
|
static COSBoolean |
getBoolean(java.lang.Boolean value)
This will get the boolean value.
|
boolean |
getValue()
This will get the value that this object wraps.
|
java.lang.Boolean |
getValueAsObject()
This will get the value that this object wraps.
|
java.lang.String |
toString()
Return a string representation of this object.
|
void |
writePDF(java.io.OutputStream output)
This will write this object out to a PDF stream.
|
getCOSObject, isDirect, setDirect
public static final byte[] TRUE_BYTES
public static final byte[] FALSE_BYTES
public static final COSBoolean TRUE
public static final COSBoolean FALSE
private final boolean value
private COSBoolean(boolean aValue)
aValue
- The boolean value.public boolean getValue()
public java.lang.Boolean getValueAsObject()
public static COSBoolean getBoolean(boolean value)
value
- Parameter telling which boolean value to get.public static COSBoolean getBoolean(java.lang.Boolean value)
value
- Parameter telling which boolean value to get.public java.lang.Object accept(ICOSVisitor visitor) throws java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
public void writePDF(java.io.OutputStream output) throws java.io.IOException
output
- The stream to write this object out to.java.io.IOException
- If an error occurs while writing out this object.