@Override public int encodeDouble(double v, byte[] b, int o) { if (v < Byte.MIN_VALUE || v > Byte.MAX_VALUE) { throw newIllegalDataException( "Value " + v + " cannot be encoded as an Byte without changing its value"); } return encodeByte((byte) v, b, o); }
@Override public int encodeInt(int v, byte[] b, int o) { if (v < Byte.MIN_VALUE || v > Byte.MAX_VALUE) { throw newIllegalDataException( "Value " + v + " cannot be encoded as an Byte without changing its value"); } return encodeByte((byte) v, b, o); }
@Override public int encodeLong(long v, byte[] b, int o) { if (v < Byte.MIN_VALUE || v > Byte.MAX_VALUE) { throw newIllegalDataException( "Value " + v + " cannot be encoded as an Byte without changing its value"); } return encodeByte((byte) v, b, o); }
@Override public int encodeLong(long v, byte[] b, int o) { if (v < Byte.MIN_VALUE || v > Byte.MAX_VALUE) { throw newIllegalDataException( "Value " + v + " cannot be encoded as an Byte without changing its value"); } return encodeByte((byte) v, b, o); }
@Override public int encodeFloat(float v, byte[] b, int o) { if (v < Byte.MIN_VALUE || v > Byte.MAX_VALUE) { throw newIllegalDataException( "Value " + v + " cannot be encoded as an Byte without changing its value"); } return encodeByte((byte) v, b, o); }
@Override public int encodeInt(int v, byte[] b, int o) { if (v < Byte.MIN_VALUE || v > Byte.MAX_VALUE) { throw newIllegalDataException( "Value " + v + " cannot be encoded as an Byte without changing its value"); } return encodeByte((byte) v, b, o); }
@Override public int encodeFloat(float v, byte[] b, int o) { if (v < Byte.MIN_VALUE || v > Byte.MAX_VALUE) { throw newIllegalDataException( "Value " + v + " cannot be encoded as an Byte without changing its value"); } return encodeByte((byte) v, b, o); }
@Override public int encodeDouble(double v, byte[] b, int o) { if (v < Byte.MIN_VALUE || v > Byte.MAX_VALUE) { throw newIllegalDataException( "Value " + v + " cannot be encoded as an Byte without changing its value"); } return encodeByte((byte) v, b, o); }
@Override public int encodeShort(short v, byte[] b, int o) { checkForSufficientLength(b, o, Bytes.SIZEOF_BYTE); if (v < Byte.MIN_VALUE || v > Byte.MAX_VALUE) { throw newIllegalDataException( "Value " + v + " cannot be encoded as an Byte without changing its value"); } return encodeByte((byte) v, b, o); }
@Override public int encodeShort(short v, byte[] b, int o) { checkForSufficientLength(b, o, Bytes.SIZEOF_BYTE); if (v < Byte.MIN_VALUE || v > Byte.MAX_VALUE) { throw newIllegalDataException( "Value " + v + " cannot be encoded as an Byte without changing its value"); } return encodeByte((byte) v, b, o); }
@Override public int encodeDouble(double v, byte[] b, int o) { if (v < Byte.MIN_VALUE || v > Byte.MAX_VALUE) { throw newIllegalDataException( "Value " + v + " cannot be encoded as an Byte without changing its value"); } return encodeByte((byte) v, b, o); }
@Override public int encodeLong(long v, byte[] b, int o) { if (v < Byte.MIN_VALUE || v > Byte.MAX_VALUE) { throw newIllegalDataException( "Value " + v + " cannot be encoded as an Byte without changing its value"); } return encodeByte((byte) v, b, o); }
@Override public int encodeFloat(float v, byte[] b, int o) { if (v < Byte.MIN_VALUE || v > Byte.MAX_VALUE) { throw newIllegalDataException( "Value " + v + " cannot be encoded as an Byte without changing its value"); } return encodeByte((byte) v, b, o); }
@Override public int encodeInt(int v, byte[] b, int o) { if (v < Byte.MIN_VALUE || v > Byte.MAX_VALUE) { throw newIllegalDataException( "Value " + v + " cannot be encoded as an Byte without changing its value"); } return encodeByte((byte) v, b, o); }
@Override public int encodeShort(short v, byte[] b, int o) { checkForSufficientLength(b, o, Bytes.SIZEOF_BYTE); if (v < Byte.MIN_VALUE || v > Byte.MAX_VALUE) { throw newIllegalDataException( "Value " + v + " cannot be encoded as an Byte without changing its value"); } return encodeByte((byte) v, b, o); }