| Modifier and Type | Field and Description |
|---|---|
static XdrBoolean |
FALSE |
static XdrBoolean |
TRUE |
| Constructor and Description |
|---|
XdrBoolean()
Default constructor, generally for decoding as a container
|
XdrBoolean(Boolean value)
Constructor with a value, generally for encoding of the value
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
encodingBodyLength()
The length of a signed integer is 4.
|
protected void |
toBytes()
Encode boolean type to bytes.
|
protected void |
toValue()
Decode bytes to boolean value.
|
decode, decodeBody, encodeBody, encodeBody, getBytes, isSimple, setBytesdecode, encode, encode, encodingLength, getDataType, getValue, setValuepublic static final XdrBoolean TRUE
public static final XdrBoolean FALSE
public XdrBoolean()
public XdrBoolean(Boolean value)
value - The boolean valueprotected int encodingBodyLength()
encodingBodyLength in class XdrSimple<Boolean>protected void toBytes()
protected void toValue()
throws IOException
toValue in class XdrSimple<Boolean>IOException - Wrong bytes for boolean.Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.