Back to project page android-google-spreadsheets-api.
The source code is released under:
Apache License
If you think the Android project android-google-spreadsheets-api listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.github.spreadsheets.android.api.requests; /* w ww . j a v a 2s . com*/ import com.android.volley.NetworkResponse; import com.android.volley.ParseError; import com.android.volley.Response; import com.android.volley.Response.ErrorListener; import com.android.volley.Response.Listener; import com.android.volley.toolbox.HttpHeaderParser; import com.github.spreadsheets.android.api.model.CellFeed; import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InputStreamReader; public class CellFeedRequest extends SpreadsheetRequest<CellFeed> { public CellFeedRequest(String url, Listener<CellFeed> listener, ErrorListener errorListener) { super(Method.GET, url, listener, errorListener); } @Override protected Response<CellFeed> parseNetworkResponse(NetworkResponse response) { try { CellFeed feed = parser .parseAndClose(new InputStreamReader(new ByteArrayInputStream(response.data)) , CellFeed.class); return Response.success(feed, HttpHeaderParser.parseCacheHeaders(response)); } catch (IOException e) { return Response.error(new ParseError(e)); } } }