panda.bind.Deserializer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of panda-core Show documentation
Show all versions of panda-core Show documentation
Panda Core is the core module of Panda Framework, it contains commonly used utility classes similar to apache-commons.
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);
}