Back to project page android-rest-client.
The source code is released under:
Apache License
If you think the Android project android-rest-client 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.dg.libs.rest.parsers; /*from w w w. j av a 2s . co m*/ import java.io.InputStream; /** * The {@link HttpResponseParser} interface has the responsibility to parse * responses from the server. * * @param <T> * Parameter that indicates which object the parser returns. It can be * of any type. */ public interface HttpResponseParser<T> { /** * This method is used for parsing JSON response from server. Given a JSON * string, returns response data which can be of any type. * * @param responseStream * The JSON string needed for parsing. * @return Object of any type returned by the parser. * @throws Exception * Thrown when various parsing errors occur. */ public T parse(final InputStream instream) throws Exception; }