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