Class XdrBytes

All Implemented Interfaces:
XdrType

public class XdrBytes extends XdrSimple<byte[]>
  • Constructor Details

    • XdrBytes

      public XdrBytes()
    • XdrBytes

      public XdrBytes(byte[] value)
  • Method Details

    • toValue

      protected void toValue() throws IOException
      Description copied from class: XdrSimple
      Decode bytes to simple value.
      Specified by:
      toValue in class XdrSimple<byte[]>
      Throws:
      IOException
    • encodingBodyLength

      protected int encodingBodyLength() throws IOException
      Description copied from class: XdrSimple
      Length including null bytes to maintain an multiple of 4.
      Overrides:
      encodingBodyLength in class XdrSimple<byte[]>
      Returns:
      The encoding body length
      Throws:
      IOException
    • toBytes

      protected void toBytes() throws IOException
      Description copied from class: XdrSimple
      Encode simple type to bytes.
      Specified by:
      toBytes in class XdrSimple<byte[]>
      Throws:
      IOException - e
    • setPadding

      public void setPadding(int padding)
    • getPadding

      public int getPadding()