Package org.apache.kerby.xdr.type
Class XdrBytes
java.lang.Object
org.apache.kerby.xdr.type.AbstractXdrType<T>
org.apache.kerby.xdr.type.XdrSimple<byte[]>
org.apache.kerby.xdr.type.XdrBytes
- All Implemented Interfaces:
XdrType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intLength including null bytes to maintain an multiple of 4.intvoidsetPadding(int padding) protected voidtoBytes()Encode simple type to bytes.protected voidtoValue()Decode bytes to simple value.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
-
XdrBytes
public XdrBytes() -
XdrBytes
public XdrBytes(byte[] value)
-
-
Method Details
-
toValue
Description copied from class:XdrSimpleDecode bytes to simple value.- Specified by:
toValuein classXdrSimple<byte[]>- Throws:
IOException
-
encodingBodyLength
Description copied from class:XdrSimpleLength including null bytes to maintain an multiple of 4.- Overrides:
encodingBodyLengthin classXdrSimple<byte[]>- Returns:
- The encoding body length
- Throws:
IOException
-
toBytes
Description copied from class:XdrSimpleEncode simple type to bytes.- Specified by:
toBytesin classXdrSimple<byte[]>- Throws:
IOException- e
-
setPadding
public void setPadding(int padding) -
getPadding
public int getPadding()
-