org.pdfbox.cos
Class COSBoolean
- COSObjectable
This class represents a boolean value in the PDF document.
Object | accept(ICOSVisitor visitor) - visitor pattern double dispatch method.
|
static COSBoolean | getBoolean(Boolean value) - This will get the boolean value.
|
static COSBoolean | getBoolean(boolean value) - This will get the boolean value.
|
boolean | getValue() - This will get the value that this object wraps.
|
Boolean | getValueAsObject() - This will get the value that this object wraps.
|
String | toString() - Return a string representation of this object.
|
void | writePDF(OutputStream output) - This will write this object out to a PDF stream.
|
FALSE
public static final COSBoolean FALSE
The PDF false value.
FALSE_BYTES
public static final byte[] FALSE_BYTES
The false boolean token.
TRUE
public static final COSBoolean TRUE
The PDF true value.
TRUE_BYTES
public static final byte[] TRUE_BYTES
The true boolean token.
accept
public Object accept(ICOSVisitor visitor)
throws COSVisitorException
visitor pattern double dispatch method.
- accept in interface COSBase
visitor
- The object to notify when visiting this object.
- any object, depending on the visitor implementation, or null
getBoolean
public static COSBoolean getBoolean(Boolean value)
This will get the boolean value.
value
- Parameter telling which boolean value to get.
- The single boolean instance that matches the parameter.
getBoolean
public static COSBoolean getBoolean(boolean value)
This will get the boolean value.
value
- Parameter telling which boolean value to get.
- The single boolean instance that matches the parameter.
getValue
public boolean getValue()
This will get the value that this object wraps.
- The boolean value of this object.
getValueAsObject
public Boolean getValueAsObject()
This will get the value that this object wraps.
- The boolean value of this object.
toString
public String toString()
Return a string representation of this object.
- The string value of this object.
writePDF
public void writePDF(OutputStream output)
throws IOException
This will write this object out to a PDF stream.
output
- The stream to write this object out to.