panda.bind.Deserializer Maven / Gradle / Ivy
package panda.bind;
import java.io.Reader;
import java.lang.reflect.Type;
/**
*
*
*/
public interface Deserializer {
/**
* Creates a object from a string, with a specific target class.
*
* @param source source string
* @param type deserialize object type
* @return deserialized object
*/
T deserialize(CharSequence source, Type type);
/**
* Creates a object from a reader, with a specific target class.
*
* @param source source reader
* @param type deserialize object type
* @return deserialized object
*/
T deserialize(Reader source, Type type);
}