public class COSBoolean extends COSBase
| Modifier and Type | Field and Description | 
|---|---|
| static COSBoolean | FALSEThe PDF false value. | 
| static byte[] | FALSE_BYTESThe false boolean token. | 
| static COSBoolean | TRUEThe PDF true value. | 
| static byte[] | TRUE_BYTESThe true boolean token. | 
| Modifier and Type | Method and Description | 
|---|---|
| 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. | 
getCOSObject, getFilterManager, isDirect, isNeedToBeUpdate, setDirect, setNeedToBeUpdatepublic static final byte[] TRUE_BYTES
public static final byte[] FALSE_BYTES
public static final COSBoolean TRUE
public static final COSBoolean FALSE
public boolean getValue()
public Boolean getValueAsObject()
public static COSBoolean getBoolean(boolean value)
value - Parameter telling which boolean value to get.public static COSBoolean getBoolean(Boolean value)
value - Parameter telling which boolean value to get.public Object accept(ICOSVisitor visitor) throws COSVisitorException
accept in class COSBasevisitor - The object to notify when visiting this object.COSVisitorException - If an error occurs while visiting this object.public String toString()
public void writePDF(OutputStream output) throws IOException
output - The stream to write this object out to.IOException - If an error occurs while writing out this object.Copyright © 2002–2016 The Apache Software Foundation. All rights reserved.