public class Content
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static Content |
NO_CONTENT |
private byte[] |
raw |
private org.apache.http.entity.ContentType |
type |
Constructor and Description |
---|
Content(byte[] raw,
org.apache.http.entity.ContentType type) |
Modifier and Type | Method and Description |
---|---|
byte[] |
asBytes() |
java.io.InputStream |
asStream() |
java.lang.String |
asString() |
java.lang.String |
asString(java.nio.charset.Charset charset) |
org.apache.http.entity.ContentType |
getType() |
java.lang.String |
toString() |
public static final Content NO_CONTENT
private final byte[] raw
private final org.apache.http.entity.ContentType type
public org.apache.http.entity.ContentType getType()
public byte[] asBytes()
public java.lang.String asString()
public java.lang.String asString(java.nio.charset.Charset charset)
public java.io.InputStream asStream()
public java.lang.String toString()
toString
in class java.lang.Object