public interface FieldAdapter
UnsupportedOperationException
.Modifier and Type | Method and Description |
---|---|
BigInteger |
getBigInteger(byte[] buf,
int offset,
int length,
int startBit,
int stopBit)
Gets the field value as a Java BigInteger.
|
byte |
getByte(byte[] buf,
int offset,
int length,
int startBit,
int stopBit)
Gets the field value as a Java byte.
|
double |
getDouble(byte[] buf,
int offset,
int length,
int startBit,
int stopBit)
Gets the field value as a Java double.
|
float |
getFloat(byte[] buf,
int offset,
int length,
int startBit,
int stopBit)
Gets the field value as a Java float.
|
int |
getInt(byte[] buf,
int offset,
int length,
int startBit,
int stopBit)
Gets the field value as a Java int.
|
long |
getLong(byte[] buf,
int offset,
int length,
int startBit,
int stopBit)
Gets the field value as a Java long.
|
short |
getShort(byte[] buf,
int offset,
int length,
int startBit,
int stopBit)
Gets the field value as a Java short.
|
String |
getString(byte[] buf,
int offset,
int length,
int startBit,
int stopBit)
Gets the field value as a Java string, using the US-ASCII
character set to convert from bytes to characters.
|
String |
getString(byte[] buf,
int offset,
int length,
int startBit,
int stopBit,
Charset charset)
Gets the field value as a Java string, using a specified
character set to convert from bytes to characters.
|
void |
setBigInteger(BigInteger value,
int offset,
int length,
ByteBuffer buffer,
boolean isRightJustified)
Sets the field value as a Java BigInteger.
|
void |
setByte(byte value,
int offset,
int length,
ByteBuffer buffer,
boolean isRightJustified)
Sets the field value as a Java byte.
|
void |
setDouble(double value,
int offset,
int length,
ByteBuffer buffer,
boolean isRightJustified)
Sets the field value as a Java double.
|
void |
setFloat(float value,
int offset,
int length,
ByteBuffer buffer,
boolean isRightJustified)
Sets the field value as a Java float.
|
void |
setInt(int value,
int offset,
int length,
ByteBuffer buffer,
boolean isRightJustified)
Sets the field value as a Java int.
|
void |
setLong(long value,
int offset,
int length,
ByteBuffer buffer,
boolean isRightJustified)
Sets the field value as a Java long.
|
void |
setShort(short value,
int offset,
int length,
ByteBuffer buffer,
boolean isRightJustified)
Sets the field value as a Java short.
|
void |
setString(String value,
int offset,
int length,
ByteBuffer buffer,
boolean isRightJustified)
Sets the field value as a Java string.
|
void |
setString(String value,
int offset,
int length,
ByteBuffer buffer,
boolean isRightJustified,
Charset charset)
Sets the field value as a Java string, using a specified
character set to convert from characters to bytes.
|
byte getByte(byte[] buf, int offset, int length, int startBit, int stopBit)
buf
- the byte array containing the fieldoffset
- the field offsetlength
- the length of the field datastartBit
- the start bit, for bit fieldsstopBit
- the stop bit, for bit fieldsshort getShort(byte[] buf, int offset, int length, int startBit, int stopBit)
buf
- the byte array containing the fieldoffset
- the field offsetlength
- the length of the field datastartBit
- the start bit, for bit fieldsstopBit
- the stop bit, for bit fieldsint getInt(byte[] buf, int offset, int length, int startBit, int stopBit)
buf
- the byte array containing the fieldoffset
- the field offsetlength
- the length of the field datastartBit
- the start bit, for bit fieldsstopBit
- the stop bit, for bit fieldslong getLong(byte[] buf, int offset, int length, int startBit, int stopBit)
buf
- the byte array containing the fieldoffset
- the field offsetlength
- the length of the field datastartBit
- the start bit, for bit fieldsstopBit
- the stop bit, for bit fieldsBigInteger getBigInteger(byte[] buf, int offset, int length, int startBit, int stopBit)
buf
- the byte array containing the fieldoffset
- the field offsetlength
- the length of the field datastartBit
- the start bit, for bit fieldsstopBit
- the stop bit, for bit fieldsBigInteger
float getFloat(byte[] buf, int offset, int length, int startBit, int stopBit)
buf
- the byte array containing the fieldoffset
- the field offsetlength
- the length of the field datastartBit
- the start bit, for bit fieldsstopBit
- the stop bit, for bit fieldsdouble getDouble(byte[] buf, int offset, int length, int startBit, int stopBit)
buf
- the byte array containing the fieldoffset
- the field offsetlength
- the length of the field datastartBit
- the start bit, for bit fieldsstopBit
- the stop bit, for bit fieldsString getString(byte[] buf, int offset, int length, int startBit, int stopBit)
buf
- the byte array containing the fieldoffset
- the field offsetlength
- the length of the field datastartBit
- the start bit, for bit fieldsstopBit
- the stop bit, for bit fieldsString getString(byte[] buf, int offset, int length, int startBit, int stopBit, Charset charset)
buf
- the byte array containing the fieldoffset
- the field offsetlength
- the length of the field datastartBit
- the start bit, for bit fieldsstopBit
- the stop bit, for bit fieldscharset
- the character set to use when converting bytes to charactersvoid setString(String value, int offset, int length, ByteBuffer buffer, boolean isRightJustified)
value
- the field valueoffset
- the field offsetlength
- the length of the valuebuffer
- the byte buffer into which to set the valueisRightJustified
- true, if the string value should be right-justifiedvoid setString(String value, int offset, int length, ByteBuffer buffer, boolean isRightJustified, Charset charset)
value
- the field valueoffset
- the field offsetlength
- the length of the valuebuffer
- the byte buffer into which to set the valueisRightJustified
- true, if the string value should be right-justifiedcharset
- the character set to use when converting the string to bytesvoid setInt(int value, int offset, int length, ByteBuffer buffer, boolean isRightJustified)
value
- the field valueoffset
- the field offsetlength
- the length of the valuebuffer
- the byte buffer into which to set the valueisRightJustified
- true, if the string value should be right-justifiedvoid setDouble(double value, int offset, int length, ByteBuffer buffer, boolean isRightJustified)
value
- the field valueoffset
- the field offsetlength
- the length of the valuebuffer
- the byte buffer into which to set the valueisRightJustified
- true, if the string value should be right-justifiedvoid setFloat(float value, int offset, int length, ByteBuffer buffer, boolean isRightJustified)
value
- the field valueoffset
- the field offsetlength
- the length of the valuebuffer
- the byte buffer into which to set the valueisRightJustified
- true, if the string value should be right-justifiedvoid setShort(short value, int offset, int length, ByteBuffer buffer, boolean isRightJustified)
value
- the field valueoffset
- the field offsetlength
- the length of the valuebuffer
- the byte buffer into which to set the valueisRightJustified
- true, if the string value should be right-justifiedvoid setByte(byte value, int offset, int length, ByteBuffer buffer, boolean isRightJustified)
value
- the field valueoffset
- the field offsetlength
- the length of the valuebuffer
- the byte buffer into which to set the valueisRightJustified
- true, if the string value should be right-justifiedvoid setLong(long value, int offset, int length, ByteBuffer buffer, boolean isRightJustified)
value
- the field valueoffset
- the field offsetlength
- the length of the valuebuffer
- the byte buffer into which to set the valueisRightJustified
- true, if the string value should be right-justifiedvoid setBigInteger(BigInteger value, int offset, int length, ByteBuffer buffer, boolean isRightJustified)
value
- the field valueoffset
- the field offsetlength
- the length of the valuebuffer
- the byte buffer into which to set the valueisRightJustified
- true, if the string value should be right-justifiedCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.