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

All Implemented Interfaces:
    Cloneable, HttpEntity

Direct Known Subclasses:
    StringNIOEntity

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