阅读(176) (2)

custom()介绍

2016-12-27 21:12:03 更新

当以上提供的现成方法都不能满足您的话,说明您是在太厉害了(啊啊啊)。那么这个方法就是完全给你自由,可以自定义数据处理器。

使用方式如下:

Object custom = response.custom(new DataHandler<Object>() {
    @Override
    public Object handle(Response response) throws IOException {
        return null;
    }
});

关于DataHandler请继续往下看,后面会与介绍的哦。