java.io.Serializablepublic 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.7' section 3.2.1 (page 52).
PdfObject,
BadPdfFormatException,
Serialized Form| Modifier and Type | Field | 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 |
| Constructor | Description |
|---|---|
PdfBoolean(boolean value) |
Constructs a
PdfBoolean-object. |
PdfBoolean(java.lang.String value) |
Constructs a
PdfBoolean-object. |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
booleanValue() |
Returns the primitive value of the
PdfBoolean-object. |
java.lang.String |
toString() |
Returns the
String-representation of this
PdfObject. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcanBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, toPdf, typepublic static final PdfBoolean PDFTRUE
public static final PdfBoolean PDFFALSE
public static final java.lang.String TRUE
PdfBooleanpublic static final java.lang.String FALSE
PdfBooleanpublic PdfBoolean(boolean value)
PdfBoolean-object.value - the value of the new PdfObjectpublic PdfBoolean(java.lang.String value)
throws BadPdfFormatException
PdfBoolean-object.value - the value of the new PdfObject, represented as a StringBadPdfFormatException - thrown if the value isn't 'true' or 'false'Copyright © 1998–2018. All rights reserved.