public class NumberVariableLength extends AbstractDataType
frameBody, identifier, logger, size, TYPE_ELEMENT, value
Constructor and Description |
---|
NumberVariableLength(NumberVariableLength copy) |
NumberVariableLength(String identifier,
AbstractTagFrameBody frameBody,
int minimumSize)
Creates a new ObjectNumberVariableLength datatype, set minimum length to zero
if this datatype is optional.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
getMaximumLenth()
Return the maximum number of digits that can be used to express the number
|
int |
getMinimumLength()
Return the minimum number of digits that can be used to express the number
|
int |
getSize()
This defines the size in bytes of the datatype being
held when read/written to file.
|
void |
readByteArray(byte[] arr,
int offset)
Read from Byte Array
|
void |
setMinimumSize(int minimumSize) |
String |
toString() |
byte[] |
writeByteArray()
Write to Byte Array
|
createStructure, getBody, getIdentifier, getValue, readByteArray, setBody, setValue
public NumberVariableLength(String identifier, AbstractTagFrameBody frameBody, int minimumSize)
identifier
- frameBody
- minimumSize
- public NumberVariableLength(NumberVariableLength copy)
public int getMaximumLenth()
public int getMinimumLength()
public void setMinimumSize(int minimumSize)
minimumSize
- public int getSize()
AbstractDataType
getSize
in class AbstractDataType
public boolean equals(Object obj)
equals
in class AbstractDataType
obj
- public void readByteArray(byte[] arr, int offset) throws InvalidDataTypeException
readByteArray
in class AbstractDataType
arr
- offset
- NullPointerException
IndexOutOfBoundsException
InvalidDataTypeException
public String toString()
public byte[] writeByteArray()
writeByteArray
in class AbstractDataType
Copyright © 2005–2020 jthink.net. All rights reserved.