public class StatusCodec extends Object
| Modifier and Type | Field and Description |
|---|---|
static org.lsst.ccs.bus.messages.StatusCodec.ClassDescriptor |
ENUM_DESCRIPTOR
This decriptor is common to all enums.
|
static org.lsst.ccs.bus.messages.StatusCodec.ClassDescriptor |
NULL_DESCRIPTOR
This descriptor is used to describe data that will not be encoded (either with a key-value list or
with a crystallized byte array).
|
static Class[] |
WELL_KNOWN_TYPES
predefined list of types where values won't be encoded either by "crystalizing"
or with a list of key-value.
|
| Constructor and Description |
|---|
StatusCodec() |
| Modifier and Type | Method and Description |
|---|---|
static List<KeyData> |
asSimpleKeyValueList(String keyName,
Object data) |
static Object |
decode(Object value)
Decodes an object.
|
static Object |
encode(Object value)
Encodes an object.
|
public static final Class[] WELL_KNOWN_TYPES
public static final org.lsst.ccs.bus.messages.StatusCodec.ClassDescriptor NULL_DESCRIPTOR
public static final org.lsst.ccs.bus.messages.StatusCodec.ClassDescriptor ENUM_DESCRIPTOR
public static Object encode(Object value) throws IOException
value - IOExceptionpublic static Object decode(Object value) throws Exception
value - ExceptionCopyright © 2015 LSST. All rights reserved.