Example usage for org.apache.http.client.fluent Content asStream

List of usage examples for org.apache.http.client.fluent Content asStream

Introduction

In this page you can find the example usage for org.apache.http.client.fluent Content asStream.

Prototype

public InputStream asStream() 

Source Link

Usage

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);
}