default <T> T deserialise(byte[] data, Class<T> clazz) throws CodecException { return deserialise(data, clazz, DecodeMethod.getDefault()); }
/** * Deserialise the given data into the specified class using the default decode method. * * @param stream the serialised data as a stream * @param clazz the class the serialised data represents * @param <T> the class the serialised data represents * @return an instance of the class specified represented by the data * @throws CodecException if the data could not be deserialised */ @Override default <T> T deserialise(InputStream stream, Class<T> clazz) throws CodecException { return deserialise(stream, clazz, DecodeMethod.getDefault()); }