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; /*from w w w.j a v a 2 s .com*/ import com.android.volley.NetworkResponse; import com.android.volley.ParseError; import com.android.volley.Response; import com.android.volley.toolbox.HttpHeaderParser; import com.github.spreadsheets.android.api.model.CellEntry; import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InputStreamReader; public class CellEntryRequest extends SpreadsheetRequest<CellEntry>{ CellEntryRequest(String url, Response.Listener<CellEntry> listener, Response.ErrorListener errorListener) { super(Method.GET, url, listener, errorListener); } @Override protected Response<CellEntry> parseNetworkResponse(NetworkResponse response) { try { CellEntry entry = parser .parseAndClose(new InputStreamReader(new ByteArrayInputStream(response.data)) , CellEntry.class); return Response.success(entry, HttpHeaderParser.parseCacheHeaders(response)); } catch (IOException e) { return Response.error(new ParseError(e)); } } }