Code example for BufferedHttpEntity

0
        this.statusCode = this.statusLine.getStatusCode();
 
        final HttpEntity wrappedHttpEntity = response.getEntity();
        if (wrappedHttpEntity != null) {
            try { 
                this.entity = new BufferedHttpEntity(wrappedHttpEntity);
            } catch (final IOException e) {
                this.entity = null;
            } 
        } 
    } 
 
    public final String getContent() throws IOException {
        if (this.entity != null) {
            return EntityUtils.toString(this.entity, HTTP.UTF_8);
        } 
        return null; 
    } 
 
    public final JSONArray getJSONArray() throws IOException {
Connect your IDE to all the code out there  Get Codota for Java