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

All Implemented Interfaces:
    HttpEntity

Direct Known Subclasses:
    ContentBufferEntity, NullHttpEntity

A generic streamed, non-repeatable entity that obtains its content from an InputStream .
Fields inherited from org.apache.http.entity.AbstractHttpEntity:
contentType,  contentEncoding,  chunked
Constructor:
 public BasicHttpEntity() 
Method from org.apache.http.entity.BasicHttpEntity Summary:
consumeContent,   getContent,   getContentLength,   isRepeatable,   isStreaming,   setContent,   setContentLength,   writeTo
Methods from org.apache.http.entity.AbstractHttpEntity:
consumeContent,   getContentEncoding,   getContentType,   isChunked,   setChunked,   setContentEncoding,   setContentEncoding,   setContentType,   setContentType
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.http.entity.BasicHttpEntity Detail:
 public  void consumeContent() throws IOException 
 public InputStream getContent() throws IllegalStateException 
    Obtains the content, once only.
 public long getContentLength() 
 public boolean isRepeatable() 
    Tells that this entity is not repeatable.
 public boolean isStreaming() 
 public  void setContent(InputStream instream) 
    Specifies the content.
 public  void setContentLength(long len) 
    Specifies the length of the content.
 public  void writeTo(OutputStream outstream) throws IOException