public class Content extends Object
| Modifier and Type | Field and Description |
|---|---|
static Content |
NO_CONTENT |
| Constructor and Description |
|---|
Content(byte[] raw,
ContentType type) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
asBytes() |
InputStream |
asStream() |
String |
asString() |
String |
asString(Charset charset) |
ContentType |
getType() |
String |
toString() |
public static final Content NO_CONTENT
public Content(byte[] raw,
ContentType type)
public ContentType getType()
public byte[] asBytes()
public String asString()
public InputStream asStream()
Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.