public class XProtocolDecoder extends java.lang.Object implements ValueDecoder
Modifier and Type | Field and Description |
---|---|
static XProtocolDecoder |
instance |
Constructor and Description |
---|
XProtocolDecoder() |
Modifier and Type | Method and Description |
---|---|
<T> T |
decodeBit(byte[] bytes,
int offset,
int length,
ValueFactory<T> vf) |
<T> T |
decodeByteArray(byte[] bytes,
int offset,
int length,
Field f,
ValueFactory<T> vf) |
<T> T |
decodeDate(byte[] bytes,
int offset,
int length,
ValueFactory<T> vf) |
<T> T |
decodeDecimal(byte[] bytes,
int offset,
int length,
ValueFactory<T> vf) |
<T> T |
decodeDouble(byte[] bytes,
int offset,
int length,
ValueFactory<T> vf) |
<T> T |
decodeFloat(byte[] bytes,
int offset,
int length,
ValueFactory<T> vf) |
<T> T |
decodeInt1(byte[] bytes,
int offset,
int length,
ValueFactory<T> vf) |
<T> T |
decodeInt2(byte[] bytes,
int offset,
int length,
ValueFactory<T> vf) |
<T> T |
decodeInt4(byte[] bytes,
int offset,
int length,
ValueFactory<T> vf) |
<T> T |
decodeInt8(byte[] bytes,
int offset,
int length,
ValueFactory<T> vf) |
<T> T |
decodeSet(byte[] bytes,
int offset,
int length,
Field f,
ValueFactory<T> vf) |
<T> T |
decodeTime(byte[] bytes,
int offset,
int length,
int scale,
ValueFactory<T> vf) |
<T> T |
decodeTimestamp(byte[] bytes,
int offset,
int length,
int scale,
ValueFactory<T> vf) |
<T> T |
decodeUInt1(byte[] bytes,
int offset,
int length,
ValueFactory<T> vf) |
<T> T |
decodeUInt2(byte[] bytes,
int offset,
int length,
ValueFactory<T> vf) |
<T> T |
decodeUInt4(byte[] bytes,
int offset,
int length,
ValueFactory<T> vf) |
<T> T |
decodeUInt8(byte[] bytes,
int offset,
int length,
ValueFactory<T> vf) |
<T> T |
decodeYear(byte[] bytes,
int offset,
int length,
ValueFactory<T> vf) |
public static XProtocolDecoder instance
public <T> T decodeDate(byte[] bytes, int offset, int length, ValueFactory<T> vf)
decodeDate
in interface ValueDecoder
public <T> T decodeTime(byte[] bytes, int offset, int length, int scale, ValueFactory<T> vf)
decodeTime
in interface ValueDecoder
public <T> T decodeTimestamp(byte[] bytes, int offset, int length, int scale, ValueFactory<T> vf)
decodeTimestamp
in interface ValueDecoder
public <T> T decodeInt1(byte[] bytes, int offset, int length, ValueFactory<T> vf)
decodeInt1
in interface ValueDecoder
public <T> T decodeUInt1(byte[] bytes, int offset, int length, ValueFactory<T> vf)
decodeUInt1
in interface ValueDecoder
public <T> T decodeInt2(byte[] bytes, int offset, int length, ValueFactory<T> vf)
decodeInt2
in interface ValueDecoder
public <T> T decodeUInt2(byte[] bytes, int offset, int length, ValueFactory<T> vf)
decodeUInt2
in interface ValueDecoder
public <T> T decodeInt4(byte[] bytes, int offset, int length, ValueFactory<T> vf)
decodeInt4
in interface ValueDecoder
public <T> T decodeUInt4(byte[] bytes, int offset, int length, ValueFactory<T> vf)
decodeUInt4
in interface ValueDecoder
public <T> T decodeInt8(byte[] bytes, int offset, int length, ValueFactory<T> vf)
decodeInt8
in interface ValueDecoder
public <T> T decodeUInt8(byte[] bytes, int offset, int length, ValueFactory<T> vf)
decodeUInt8
in interface ValueDecoder
public <T> T decodeFloat(byte[] bytes, int offset, int length, ValueFactory<T> vf)
decodeFloat
in interface ValueDecoder
public <T> T decodeDouble(byte[] bytes, int offset, int length, ValueFactory<T> vf)
decodeDouble
in interface ValueDecoder
public <T> T decodeDecimal(byte[] bytes, int offset, int length, ValueFactory<T> vf)
decodeDecimal
in interface ValueDecoder
public <T> T decodeByteArray(byte[] bytes, int offset, int length, Field f, ValueFactory<T> vf)
decodeByteArray
in interface ValueDecoder
public <T> T decodeBit(byte[] bytes, int offset, int length, ValueFactory<T> vf)
decodeBit
in interface ValueDecoder
public <T> T decodeSet(byte[] bytes, int offset, int length, Field f, ValueFactory<T> vf)
decodeSet
in interface ValueDecoder
public <T> T decodeYear(byte[] bytes, int offset, int length, ValueFactory<T> vf)
decodeYear
in interface ValueDecoder