public static class SleeDatatypeCodecs.ProfileLocalObjectCodec<T extends ProfileLocalObject> extends Object implements DatatypeCodec<T>
ProfileLocalObject
and derived interfaces.Constructor and Description |
---|
SleeDatatypeCodecs.ProfileLocalObjectCodec() |
Modifier and Type | Method and Description |
---|---|
T |
decode(DataInput in,
ClassLoader cl,
DecoderUtils utils)
Decode a value from the given data input stream.
|
void |
encode(T value,
DataOutput out,
EncoderUtils utils)
Encode the specified value to the given data output stream.
|
public SleeDatatypeCodecs.ProfileLocalObjectCodec()
public void encode(T value, DataOutput out, EncoderUtils utils) throws IOException
DatatypeCodec
encode
in interface DatatypeCodec<T extends ProfileLocalObject>
value
- the value to encode. This will never be null
.out
- the data output stream to encode the value to.utils
- additional utility encoding functions that may be useful to the codec.IOException
- if an I/O error occurs.public T decode(DataInput in, ClassLoader cl, DecoderUtils utils) throws IOException
DatatypeCodec
decode
in interface DatatypeCodec<T extends ProfileLocalObject>
in
- the data input stream to decode the value from.cl
- a classloader which can be used to load classes necessary
to decode the value.utils
- additional utility decoding functions that may be useful to the codec.IOException
- if an I/O error occurs.