custom()介绍
当以上提供的现成方法都不能满足您的话,说明您是在太厉害了(啊啊啊)。那么这个方法就是完全给你自由,可以自定义数据处理器。
使用方式如下:
Object custom = response.custom(new DataHandler<Object>() {
@Override
public Object handle(Response response) throws IOException {
return null;
}
});关于DataHandler请继续往下看,后面会与介绍的哦。