Package org.apache.kerby.xdr.type
Class XdrLong
- All Implemented Interfaces:
XdrType
From RFC 4506 :
(MSB) (LSB)
+-------+-------+-------+-------+-------+-------+-------+-------+
|byte 0 |byte 1 |byte 2 |byte 3 |byte 4 |byte 5 |byte 6 |byte 7 |
+-------+-------+-------+-------+-------+-------+-------+-------+
-----------------------------64 bits-----------------------------
HYPER INTEGER
UNSIGNED HYPER INTEGER
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.kerby.xdr.type.XdrSimple
decode, decodeBody, encodeBody, encodeBody, getBytes, isSimple, setBytesMethods inherited from class org.apache.kerby.xdr.type.AbstractXdrType
decode, encode, encode, encodingLength, getDataType, getValue, setValue
-
Constructor Details
-
XdrLong
public XdrLong() -
XdrLong
-
-
Method Details
-
encodingBodyLength
The length of a signed long is 8.- Overrides:
encodingBodyLengthin classXdrSimple<Long>- Returns:
- Length of a signed long type.
- Throws:
IOException
-
toBytes
Encode Long type to bytes. Cannot only use toByteArray() because of fixed 4 bytes length.- Specified by:
toBytesin classXdrSimple<Long>- Throws:
IOException- e
-
toValue
protected void toValue()Decode bytes to Long value.
-