public class

StringEntity

extends AbstractHttpEntity
implements Cloneable
java.lang.Object
   ↳ org.apache.http.entity.AbstractHttpEntity
     ↳ org.apache.http.entity.StringEntity

Class Overview

A self contained, repeatable entity that obtains its content from a String.

Summary

Fields
protected final byte[] content
[Expand]
Inherited Fields
From class org.apache.http.entity.AbstractHttpEntity
Public Constructors
StringEntity(String s, String mimeType, String charset)
StringEntity(String s, String charset)
StringEntity(String s)
Public Methods
Object clone()
InputStream getContent()
long getContentLength()
boolean isRepeatable()
boolean isStreaming()
Tells that this entity is not streaming.
void writeTo(OutputStream outstream)
[Expand]
Inherited Methods
From class org.apache.http.entity.AbstractHttpEntity
From class java.lang.Object
From interface org.apache.http.HttpEntity

Fields

protected final byte[] content

Public Constructors

public StringEntity (String s, String mimeType, String charset)

public StringEntity (String s, String charset)

public StringEntity (String s)

Public Methods

public Object clone ()

public InputStream getContent ()

Throws
IOException

public long getContentLength ()

public boolean isRepeatable ()

public boolean isStreaming ()

Tells that this entity is not streaming.

Returns
  • false

public void writeTo (OutputStream outstream)

Throws
IOException