public interface ObjectDecoder
Modifier and Type | Method and Description |
---|---|
<T> T |
decode(byte[] binary,
java.lang.Class<? extends T> rootClazz)
Decodes valid JABB objects, i.e.
|
<T> T decode(byte[] binary, java.lang.Class<? extends T> rootClazz) throws ParseException
T
- root class of expected typebinary
- binary representation of JABB object or basic typerootClazz
- object class matching the binaryParseException
- if the byte array can't be parsed for any reason