All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy