public final class OptionsEncoder extends Object
| Modifier and Type | Method and Description |
|---|---|
static Map<String,Object> |
decode(byte[] input)
Decodes
input into a name/value map. |
static byte[] |
encode(Map<String,Object> options)
Encodes
options into a byte array. |
static boolean |
isValueSupported(Object value)
Determines if
value is supported by OptionsEncoder.encode(Map). |
public static boolean isValueSupported(Object value)
value is supported by OptionsEncoder.encode(Map).public static byte[] encode(Map<String,Object> options)
options into a byte array.IllegalArgumentException - if any value in options is not
supportedpublic static Map<String,Object> decode(byte[] input)
input into a name/value map.IllegalArgumentException - if input cannot be decoded