public class PdfBoolean extends PdfObject
PdfBoolean
is the boolean object represented by the keywords true or false.
This object is described in the 'Portable Document Format Reference Manual version 1.3' section 4.2 (page 37).
PdfObject
,
BadPdfFormatException
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FALSE
A possible value of
PdfBoolean |
static PdfBoolean |
PDFFALSE |
static PdfBoolean |
PDFTRUE |
static java.lang.String |
TRUE
A possible value of
PdfBoolean |
private boolean |
value
the boolean value of this object
|
Constructor and Description |
---|
PdfBoolean(boolean value)
Constructs a
PdfBoolean -object. |
PdfBoolean(java.lang.String value)
Constructs a
PdfBoolean -object. |
Modifier and Type | Method and Description |
---|---|
boolean |
booleanValue()
Returns the primitive value of the
PdfBoolean -object. |
java.lang.String |
toString()
Returns the
String -representation of this PdfObject . |
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, toPdf, type
public static final PdfBoolean PDFTRUE
public static final PdfBoolean PDFFALSE
public static final java.lang.String TRUE
PdfBoolean
public static final java.lang.String FALSE
PdfBoolean
private boolean value
public PdfBoolean(boolean value)
PdfBoolean
-object.value
- the value of the new PdfObject
public PdfBoolean(java.lang.String value) throws BadPdfFormatException
PdfBoolean
-object.value
- the value of the new PdfObject
, represented as a String
BadPdfFormatException
- thrown if the value isn't 'true
' or 'false
'