com.sdklite.io.Deserializer Maven / Gradle / Ivy
The newest version!
package com.sdklite.io;
import java.io.IOException;
import java.io.InputStream;
/**
* This class is used for object deserialization
*
* @author johnsonlee
*
* @param
* The type of object to deserialize
*/
public interface Deserializer {
/**
* Deserialize data to the target type from {@code in}
*
* @param in
* The input stream
* @return the deserialized object
* @throws IOException
* if error occurred during deserializaion
*/
public T deserialize(final InputStream in) throws IOException;
}