public interface SecsFormat
Modifier and Type | Method and Description |
---|---|
SecsFormat[] |
getArray()
This allows for arrays of secsformats (not a list of secsformats).
|
boolean |
getBoolValue()
Returns the value of the format as a boolean.
|
byte |
getByteValue()
Returns the value of the format as a byte.
|
double |
getDoubleValue()
Returns the value of the format as a double.
|
float |
getFloatValue()
Returns the value of the format as a float.
|
byte[] |
getFormattedBytes()
Returns an array of bytes suitable for use in a SECS Message.
|
int |
getIntValue()
Returns the value of the format as a int.
|
int |
getLength()
Returns the length of the format.
|
long |
getLongValue()
Returns the value of the format as a long.
|
int |
getNumberOfLengthBytes()
Returns the number of length bytes.
|
short |
getShortValue()
Returns the value of the format as a short.
|
java.lang.String |
getStringValue()
Returns the value of the format as a string.
|
void |
setArray(SecsFormat[] newValues)
This allows for a standard way to set arrays of secsformats.
|
void |
setDataFromByteArray(byte[] temp,
int offset,
int length)
stores the incoming value in the format object.
|
void |
setLength(int newValue)
Sets the length of the format.
|
void |
setNumberOfLengthBytes(int numberOfLengthBytes)
Sets the number of length bytes to send when the format is encoded.
|
java.lang.String |
toString(int indent)
Returns an SML string correctly indented.
|
boolean |
zeroLength()
Returns true if the format is zero length.
|
SecsFormat[] getArray()
boolean getBoolValue()
byte getByteValue()
double getDoubleValue()
float getFloatValue()
byte[] getFormattedBytes() throws SecsException
SecsException
int getIntValue()
int getLength()
long getLongValue()
int getNumberOfLengthBytes()
short getShortValue()
java.lang.String getStringValue()
void setArray(SecsFormat[] newValues) throws SecsException
SecsException
void setDataFromByteArray(byte[] temp, int offset, int length) throws SecsException
SecsException
void setLength(int newValue)
newValue
- the new lengthvoid setNumberOfLengthBytes(int numberOfLengthBytes) throws java.lang.IllegalArgumentException
numberOfLengthBytes
- the new number of length bytes. This should
be 1, 2,3 or -1 to indicate the defaultjava.lang.IllegalArgumentException
- if the value is not 1, 2, 3 or -1java.lang.String toString(int indent)
indent
- the level of indentation.boolean zeroLength()
Copyright © 1999-2025 ErgoTech Systems, Inc. All Rights Reserved.