package flexjson.factories;
import flexjson.ObjectFactory;
import flexjson.ObjectBinder;
import java.lang.reflect.Type;
public class CharacterObjectFactory implements ObjectFactory {
public Object instantiate(ObjectBinder context, Object value, Type targetType, Class targetClass) {
return value.toString().charAt(0);
}
}
|