Home » HttpComponents-Core-4.0.1 » org.apache.http.entity » [javadoc | source]
org.apache.http.entity
public class: BufferedHttpEntity [javadoc | source]
java.lang.Object
   org.apache.http.entity.HttpEntityWrapper
      org.apache.http.entity.BufferedHttpEntity

All Implemented Interfaces:
    HttpEntity

A wrapping entity that buffers it content if necessary. The buffered entity is always repeatable. If the wrapped entity is repeatable itself, calls are passed through. If the wrapped entity is not repeatable, the content is read into a buffer once and provided from there as often as required.
Fields inherited from org.apache.http.entity.HttpEntityWrapper:
wrappedEntity
Constructor:
 public BufferedHttpEntity(HttpEntity entity) throws IOException 
Method from org.apache.http.entity.BufferedHttpEntity Summary:
getContent,   getContentLength,   isChunked,   isRepeatable,   isStreaming,   writeTo
Methods from org.apache.http.entity.HttpEntityWrapper:
consumeContent,   getContent,   getContentEncoding,   getContentLength,   getContentType,   isChunked,   isRepeatable,   isStreaming,   writeTo
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.http.entity.BufferedHttpEntity Detail:
 public InputStream getContent() throws IOException 
 public long getContentLength() 
 public boolean isChunked() 
    Tells that this entity does not have to be chunked.
 public boolean isRepeatable() 
    Tells that this entity is repeatable.
 public boolean isStreaming() 
 public  void writeTo(OutputStream outstream) throws IOException