com.vladkrava.converter.serialization.Deserializer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of avro-converter Show documentation
Show all versions of avro-converter Show documentation
Enables conversion of Apache Avro object into popular data formats: JSON, XML, etc
package com.vladkrava.converter.serialization;
/**
* Provides low level interface for deserialization from the byte array
*
* @author Vlad Krava - [email protected]
* @since 0.1-SNAPSHOT
*/
public interface Deserializer {
/**
* Object deserialization
*
* @param data - source of the data
* @param aClass - target class
* @return T generic object
* @throws DataSerializationException - signals that some exception of some sort has occurred
* during the data deserialization
*/
T deserialize(byte[] data, Class extends T> aClass) throws DataSerializationException;
}