Code example for HttpEntity

Methods: writeTo

0
        return wrappedEntity.getContent();
    } 
 
    public void writeTo(final OutputStream outstream)
        throws IOException { 
        wrappedEntity.writeTo(outstream);
    } 
 
    public boolean isStreaming() { 
        return wrappedEntity.isStreaming();
    } 
 
    /** 
     * @deprecated (4.1) Either use {@link #getContent()} and call {@link java.io.InputStream#close()} on that; 
     * otherwise call {@link #writeTo(OutputStream)} which is required to free the resources. 
     */ 
    @Deprecated 
    public void consumeContent() throws IOException { 
        wrappedEntity.consumeContent();
    }