public interface Decoder
Modifier and Type | Method and Description |
---|---|
short |
decode16()
Decodes a signed short integer.
|
int |
decode32()
Decodes a signed integer.
|
long |
decode64()
Decodes a signed long integer.
|
boolean |
decodeBoolean()
Decodes a boolean.
|
byte |
decodeByte()
Decodes a byte.
|
byte[] |
decodeByteArray()
Decodes a byte array that cannot be null.
|
byte[] |
decodeByteArray(int length)
Decodes a byte array that cannot be null.
|
double |
decodeDouble()
Decodes a double.
|
float |
decodeFloat()
Decodes a float.
|
byte[] |
decodeNullableByteArray()
Decodes a byte array that can be null.
|
String |
decodeNullableString()
Decodes a string that can be null.
|
int |
decodeSignedInt()
Decodes a signed integer.
|
long |
decodeSignedLong()
Decodes a signed long integer.
|
short |
decodeSignedShort()
Decodes a signed short integer.
|
String |
decodeString()
Decodes a string that cannot be null.
|
String |
decodeString(int length)
Decodes a string that cannot be null.
|
int |
decodeUnsignedInt()
Decodes an unsigned integer.
|
long |
decodeUnsignedLong()
Decodes an unsigned long integer.
|
short |
decodeUnsignedShort()
Decodes an unsigned short integer.
|
short decodeSignedShort() throws Exception
Exception
- if an error occurs during decodingshort decodeUnsignedShort() throws Exception
Exception
- if an error occurs during decodingshort decode16() throws Exception
Exception
- if an error occurs during decodingint decodeSignedInt() throws Exception
Exception
- if an error occurs during decodingint decodeUnsignedInt() throws Exception
Exception
- if an error occurs during decodingint decode32() throws Exception
Exception
- if an error occurs during decodinglong decodeSignedLong() throws Exception
Exception
- if an error occurs during decodinglong decodeUnsignedLong() throws Exception
Exception
- if an error occurs during decodinglong decode64() throws Exception
Exception
- if an error occurs during decodingString decodeNullableString() throws Exception
Exception
- if an error occurs during decodingString decodeString() throws Exception
Exception
- if an error occurs during decodingString decodeString(int length) throws Exception
length
- the length of the stringException
- if an error occurs during decodingbyte decodeByte() throws Exception
Exception
- if an error occurs during decodingbyte[] decodeNullableByteArray() throws Exception
Exception
- if an error occurs during decodingbyte[] decodeByteArray() throws Exception
Exception
- if an error occurs during decodingbyte[] decodeByteArray(int length) throws Exception
length
- the length of the arrayException
- if an error occurs during decodingboolean decodeBoolean() throws Exception
Exception
- if an error occurs during decodingfloat decodeFloat() throws Exception
Exception
- if an error occurs during decodingCopyright © 2019 ScalAgent D.T.. All rights reserved.