public final class BigEndianDatatypeCoder 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 |
---|
BigEndianDatatypeCoder(IEncodingFactory encodingFactory) |
Modifier and Type | Method and Description |
---|---|
short |
decodeShort(byte[] byte_int)
Decode a
byte array into a short value. |
byte[] |
encodeShort(short value)
Encode a
short value as a byte array. |
decodeBoolean, decodeDate, decodeDate, decodeDateCalendar, decodeDateRaw, decodeDouble, decodeFloat, decodeInt, decodeLong, decodeString, decodeString, decodeTime, decodeTime, decodeTimeCalendar, decodeTimeRaw, decodeTimestamp, decodeTimestamp, decodeTimestamp, decodeTimestampCalendar, decodeTimestampRaw, encodeBoolean, encodeDate, encodeDate, encodeDateCalendar, encodeDateRaw, encodeDouble, encodeFloat, encodeInt, encodeLocalDate, encodeLocalDateTime, encodeLocalTime, encodeLong, encodeShort, encodeString, encodeString, encodeTime, encodeTime, encodeTimeCalendar, encodeTimeRaw, encodeTimestamp, encodeTimestamp, encodeTimestamp, encodeTimestampCalendar, encodeTimestampRaw, getEncodingFactory, intToBytes
public BigEndianDatatypeCoder(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
arrayCopyright © 2001-2021 Jaybird (Firebird JDBC/JCA) team. All rights reserved.