public class EncodableHelper extends Object
| Constructor and Description |
|---|
EncodableHelper() |
| Modifier and Type | Method and Description |
|---|---|
static Properties |
decodeProperties(Decoder decoder) |
static void |
encodeProperties(Properties properties,
Encoder encoder) |
static int |
getByteArrayEncodedSize(byte[] byteArray) |
static int |
getEncodedSize(Properties properties) |
static int |
getNullableByteArrayEncodedSize(byte[] byteArray) |
static int |
getNullableByteArrayEncodedSize(byte[] byteArray,
int length) |
static int |
getNullableStringEncodedSize(String s)
Returns the size of an encoded string which
value may be null.
|
static int |
getStringEncodedSize(String s)
Returns the size of an encoded string.
|
public static final int getStringEncodedSize(String s)
s - the string to encodepublic static final int getNullableStringEncodedSize(String s)
s - the string to encodepublic static final int getByteArrayEncodedSize(byte[] byteArray)
public static final int getNullableByteArrayEncodedSize(byte[] byteArray)
public static final int getNullableByteArrayEncodedSize(byte[] byteArray,
int length)
public static int getEncodedSize(Properties properties) throws Exception
Exceptionpublic static void encodeProperties(Properties properties, Encoder encoder) throws Exception
Exceptionpublic static Properties decodeProperties(Decoder decoder) throws Exception
ExceptionCopyright © 2021 ScalAgent D.T.. All rights reserved.