public class ResponseBody
extends java.lang.Object
Constructor and Description |
---|
ResponseBody() |
ResponseBody(byte[] content,
int len,
java.lang.String contentType) |
ResponseBody(java.io.File file,
java.lang.String contentType) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
decodeContent() |
byte[] |
getContent() |
int |
getContentLen() |
java.lang.String |
getContentType() |
java.io.File |
getFile() |
void |
setContent(byte[] content,
int len) |
void |
setContentType(java.lang.String contentType) |
void |
setFile(java.io.File file) |
java.lang.String |
toString() |
void |
writeTo(java.io.OutputStream stream) |
public ResponseBody()
public ResponseBody(byte[] content, int len, java.lang.String contentType)
public ResponseBody(java.io.File file, java.lang.String contentType)
public void setContent(byte[] content, int len)
public void setContentType(java.lang.String contentType)
public byte[] getContent()
public int getContentLen()
public java.lang.String decodeContent()
public java.lang.String getContentType()
public java.io.File getFile()
public void setFile(java.io.File file)
public void writeTo(java.io.OutputStream stream) throws java.io.IOException
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object