org.apache.http.client.fluent
Class Content
java.lang.Object
org.apache.http.client.fluent.Content
public class Content
- extends Object
This class represents arbitrary content of a specific type that can be consumed
multiple times and requires no explicit deallocation.
Constructor Summary |
Content(byte[] raw,
org.apache.http.entity.ContentType type)
|
NO_CONTENT
public static final Content NO_CONTENT
Content
public Content(byte[] raw,
org.apache.http.entity.ContentType type)
getType
public org.apache.http.entity.ContentType getType()
asBytes
public byte[] asBytes()
asString
public String asString()
asString
public String asString(Charset charset)
- Since:
- 4.4
asStream
public InputStream asStream()
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.