List of usage examples for org.apache.http.client.fluent Content asStream
public InputStream asStream()
From source file:eu.anynet.java.util.HttpClient.java
/** * Response to String//from www . j av a 2s . c o m * @param response -The response object * @param maxbyte Max bytes to fetch * @return The string * @throws IOException */ public static String toString(Response response, int maxbyte) throws IOException { Content content = response.returnContent(); return toString(content.asStream(), maxbyte); }