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

All Implemented Interfaces:
    Cloneable, HttpEntity

Direct Known Subclasses:
    ByteArrayNIOEntity

A self contained, repeatable entity that obtains its content from a byte array.
Field Summary
protected final  byte[] content     
Fields inherited from org.apache.http.entity.AbstractHttpEntity:
contentType,  contentEncoding,  chunked
Constructor:
 public ByteArrayEntity(byte[] b) 
Method from org.apache.http.entity.ByteArrayEntity Summary:
clone,   getContent,   getContentLength,   isRepeatable,   isStreaming,   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.ByteArrayEntity Detail:
 public Object clone() throws CloneNotSupportedException 
 public InputStream getContent() 
 public long getContentLength() 
 public boolean isRepeatable() 
 public boolean isStreaming() 
    Tells that this entity is not streaming.
 public  void writeTo(OutputStream outstream) throws IOException