Returns true when obj is the correct type for the DataType.
Converts the bytes in the buffer to an object.
Converts the bytes in the buffer to an object. This is a helper function for getValue().
The default length of the DataType.
The default length of the DataType.
Converts the object into a stream of bytes and appends to the buffer.
Converts the object into a stream of bytes and appends to the buffer. This is a helper function for toBuffer().
Computes the length of an object.
Computes the length of an object. This is a helper function for
octetLength(), and it is only called when len is VARLEN.
Objects that support VARLEN values must override this method.
Converts the bytes in the ByteBuffer which represent the specified InfoElement to an object.
Converts the bytes in the ByteBuffer which represent the
specified InfoElement to an object. session is where buffer
was collected, and it is used to resolve the contents of
ListElements.
A reference to the DataTypes value that this class implements.
A reference to the DataTypes value that this class implements.
The maximim length of the DataType.
The maximim length of the DataType.
An optional maximum value for the DataType.
An optional maximum value for the DataType.
The minimim length of the DataType.
The minimim length of the DataType.
An optional minimum value for the DataType.
An optional minimum value for the DataType.
The name of the DataType.
The name of the DataType.
Returns the number of bytes that toBuffer() would write to the
buffer, where len is the length of the InfoElement
according to the record's Template (that is, the length
member of the IEFieldSpecifier).
Returns the number of bytes that toBuffer() would write to the
buffer, where len is the length of the InfoElement
according to the record's Template (that is, the length
member of the IEFieldSpecifier). Returns VARLEN when obj
is not of the correct type for the DataType. This method is
useful primarily for determining the length of variable length
data types.
Converts the object into a stream of bytes and appends the bytes
to the ByteBuffer, where len is the length of the
InfoElement according to the record's Template (that is,
the length member of the IEFieldSpecifier).
Converts the object into a stream of bytes and appends the bytes
to the ByteBuffer, where len is the length of the
InfoElement according to the record's Template (that is,
the length member of the IEFieldSpecifier). When the
object is a SubTemplateList or SubTemplateMultiList, session
is used to find the Template given a Template ID.
Implements encoding and decoding of the unsigned8 DataType, DataTypes.Unsigned8.