public class SignedBinaryEncoder extends BinaryEncoder
Constructor and Description |
---|
SignedBinaryEncoder() |
Modifier and Type | Method and Description |
---|---|
double |
decodeDouble(byte[] a) |
float |
decodeFloat(byte[] a) |
int |
decodeInt(byte[] a) |
long |
decodeLong(byte[] a) |
short |
decodeShort(byte[] a) |
byte[] |
encodeDouble(double d,
byte[] ret) |
byte[] |
encodeFloat(float f,
byte[] ret) |
byte[] |
encodeInt(int i,
byte[] ret) |
byte[] |
encodeLong(long l,
byte[] ret) |
byte[] |
encodeShort(short s,
byte[] ret) |
decodeBoolean, decodeByte, encodeBoolean, encodeBoolean, encodeByte, encodeByte, encodeDouble, encodeFloat, encodeInt, encodeLong, encodeShort, followingKey, lastPossibleKey
public byte[] encodeShort(short s, byte[] ret) throws IOException
encodeShort
in interface Encoder
encodeShort
in class BinaryEncoder
IOException
public short decodeShort(byte[] a) throws IOException
decodeShort
in interface Encoder
decodeShort
in class BinaryEncoder
IOException
public byte[] encodeInt(int i, byte[] ret) throws IOException
encodeInt
in interface Encoder
encodeInt
in class BinaryEncoder
IOException
public int decodeInt(byte[] a) throws IOException
decodeInt
in interface Encoder
decodeInt
in class BinaryEncoder
IOException
public byte[] encodeLong(long l, byte[] ret) throws IOException
encodeLong
in interface Encoder
encodeLong
in class BinaryEncoder
IOException
public long decodeLong(byte[] a) throws IOException
decodeLong
in interface Encoder
decodeLong
in class BinaryEncoder
IOException
public byte[] encodeDouble(double d, byte[] ret) throws IOException
encodeDouble
in interface Encoder
encodeDouble
in class BinaryEncoder
IOException
public double decodeDouble(byte[] a) throws IOException
decodeDouble
in interface Encoder
decodeDouble
in class BinaryEncoder
IOException
public byte[] encodeFloat(float f, byte[] ret) throws IOException
encodeFloat
in interface Encoder
encodeFloat
in class BinaryEncoder
IOException
public float decodeFloat(byte[] a) throws IOException
decodeFloat
in interface Encoder
decodeFloat
in class BinaryEncoder
IOException
Copyright © 2010-2017 The Apache Software Foundation. All Rights Reserved.