Package nts.NTSExtensionFields
Class NTSExtensionField
java.lang.Object
nts.NTSExtensionFields.NTSExtensionField
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionNTSExtensionField(FieldType fieldType, byte[] body) Constructor for NTSExtensionField from arbitrary parameters. -
Method Summary
Modifier and TypeMethodDescriptionstatic NTSExtensionFieldfromBytes(byte[] buf, int idx) intReturns the length of the extension field.voidreplaceBody(byte[] bodySegment, int offset) byte[]Converts the NTSExtensionField to a byte array to be send over the network.Converts the NTSExtensionField to a byte string representation for debugging purposes.toString()Converts the NTSExtensionField to a string representation for debugging purposes.
-
Field Details
-
fieldType
-
body
public byte[] body
-
-
Constructor Details
-
NTSExtensionField
Constructor for NTSExtensionField from arbitrary parameters.
-
-
Method Details
-
fromBytes
-
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
Converts the NTSExtensionField to a string representation for debugging purposes. -
toByteString
Converts the NTSExtensionField to a byte string representation for debugging purposes.- Returns:
- the byte string representation of the record.
-