use of com.stylingandroid.designlibrary.rss.model.Articles in project DesignLibrary by StylingAndroid.
the class RssRequest method parseNetworkResponse.
@Override
protected Response<Articles> parseNetworkResponse(NetworkResponse response) {
InputStream inputStream = new ByteArrayInputStream(response.data);
SaRssParser parser = SaRssParser.newInstance(inputStream);
Articles articles;
try {
articles = parser.parse();
} catch (Exception e) {
return Response.error(new ParseError(e));
}
return Response.success(articles, HttpHeaderParser.parseCacheHeaders(response));
}
Aggregations