public final class LittleEndianDatatypeCoder extends DefaultDatatypeCoder
For wire protocol use DefaultDatatypeCoder
.
DatatypeCoder.RawDateTimeStruct
FRACTIONS_PER_HOUR, FRACTIONS_PER_MILLISECOND, FRACTIONS_PER_MINUTE, FRACTIONS_PER_SECOND, NANOSECONDS_PER_FRACTION
Constructor and Description |
---|
LittleEndianDatatypeCoder(IEncodingFactory encodingFactory) |
Modifier and Type | Method and Description |
---|---|
int |
decodeInt(byte[] byte_int)
Decode a
byte array into an int value. |
long |
decodeLong(byte[] byte_int)
Decode a
byte array into a long value. |
short |
decodeShort(byte[] byte_int)
Decode a
byte array into a short value. |
byte[] |
encodeInt(int value)
Encode an
int value as a byte array. |
byte[] |
encodeLong(long value)
Encode a
long value as a byte array. |
byte[] |
encodeShort(short value)
Encode a
short value as a byte array. |
decodeBoolean, decodeDate, decodeDate, decodeDateCalendar, decodeDateRaw, decodeDouble, decodeFloat, decodeString, decodeString, decodeTime, decodeTime, decodeTimeCalendar, decodeTimeRaw, decodeTimestamp, decodeTimestamp, decodeTimestamp, decodeTimestampCalendar, decodeTimestampRaw, encodeBoolean, encodeDate, encodeDate, encodeDateCalendar, encodeDateRaw, encodeDouble, encodeFloat, encodeLocalDate, encodeLocalDateTime, encodeLocalTime, encodeShort, encodeString, encodeString, encodeTime, encodeTime, encodeTimeCalendar, encodeTimeRaw, encodeTimestamp, encodeTimestamp, encodeTimestamp, encodeTimestampCalendar, encodeTimestampRaw, getEncodingFactory, intToBytes
public LittleEndianDatatypeCoder(IEncodingFactory encodingFactory)
public byte[] encodeShort(short value)
DatatypeCoder
short
value as a byte
array.encodeShort
in interface DatatypeCoder
encodeShort
in class DefaultDatatypeCoder
value
- The value to be encodedvalue
encoded as a byte
arrayDatatypeCoder.encodeShort(int)
public short decodeShort(byte[] byte_int)
DatatypeCoder
byte
array into a short
value.decodeShort
in interface DatatypeCoder
decodeShort
in class DefaultDatatypeCoder
byte_int
- The byte
array to be decodedshort
value of the decoded byte
arraypublic byte[] encodeInt(int value)
DatatypeCoder
int
value as a byte
array.encodeInt
in interface DatatypeCoder
encodeInt
in class DefaultDatatypeCoder
value
- The value to be encodedvalue
encoded as a byte
arraypublic int decodeInt(byte[] byte_int)
DatatypeCoder
byte
array into an int
value.decodeInt
in interface DatatypeCoder
decodeInt
in class DefaultDatatypeCoder
byte_int
- The byte
array to be decodedint
value of the decoded byte
arraypublic byte[] encodeLong(long value)
DatatypeCoder
long
value as a byte
array.encodeLong
in interface DatatypeCoder
encodeLong
in class DefaultDatatypeCoder
value
- The value to be encodedvalue
encoded as a byte
arraypublic long decodeLong(byte[] byte_int)
DatatypeCoder
byte
array into a long
value.decodeLong
in interface DatatypeCoder
decodeLong
in class DefaultDatatypeCoder
byte_int
- The byte
array to be decodedlong
value of the decoded byte
arrayCopyright © 2001-2021 Jaybird (Firebird JDBC/JCA) team. All rights reserved.