public class RequestBody
extends java.lang.Object
Constructor and Description |
---|
RequestBody(long contentLen) |
Modifier and Type | Method and Description |
---|---|
boolean |
appendContent(byte[] content,
int off,
int len) |
void |
destroy() |
byte[] |
getContent() |
java.nio.ByteBuffer |
getContentByteBuffer() |
long |
getContentLen() |
java.lang.String |
getContentType() |
void |
setContentType(java.lang.String contentType) |
java.lang.String |
toString() |
public RequestBody(long contentLen) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public byte[] getContent()
public java.lang.String getContentType()
public void setContentType(java.lang.String contentType)
public long getContentLen()
public boolean appendContent(byte[] content, int off, int len)
public java.nio.ByteBuffer getContentByteBuffer()
public void destroy()
public java.lang.String toString()
toString
in class java.lang.Object