Class NTSExtensionField

java.lang.Object
nts.NTSExtensionFields.NTSExtensionField

public class NTSExtensionField extends Object
  • Field Details

    • fieldType

      public FieldType fieldType
    • body

      public byte[] body
  • Constructor Details

    • NTSExtensionField

      public NTSExtensionField(FieldType fieldType, byte[] body)
      Constructor for NTSExtensionField from arbitrary parameters.
  • Method Details

    • fromBytes

      public static NTSExtensionField fromBytes(byte[] buf, int idx)
    • getFieldLength

      public int getFieldLength()
      Returns the length of the extension field.
      Returns:
      the field length.
    • replaceBody

      public void replaceBody(byte[] bodySegment, int offset)
    • toByteArray

      public byte[] toByteArray()
      Converts the NTSExtensionField to a byte array to be send over the network.
      Returns:
      the byte array representation of the record.
    • toString

      public String toString()
      Converts the NTSExtensionField to a string representation for debugging purposes.
      Overrides:
      toString in class Object
      Returns:
      the string representation of the record.
    • toByteString

      public String toByteString()
      Converts the NTSExtensionField to a byte string representation for debugging purposes.
      Returns:
      the byte string representation of the record.