|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ning.http.client.generators.ByteArrayBodyGenerator.ByteBody
protected final class ByteArrayBodyGenerator.ByteBody
Constructor Summary | |
---|---|
protected |
ByteArrayBodyGenerator.ByteBody()
|
Method Summary | |
---|---|
void |
close()
Releases any resources associated with this body. |
long |
getContentLength()
Gets the length of the body. |
long |
read(java.nio.ByteBuffer byteBuffer)
Reads the next chunk of bytes from the body. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected ByteArrayBodyGenerator.ByteBody()
Method Detail |
---|
public long getContentLength()
Body
getContentLength
in interface Body
public long read(java.nio.ByteBuffer byteBuffer) throws java.io.IOException
Body
read
in interface Body
byteBuffer
- The buffer to store the chunk in, must not be null
.
-1
if the body has been read completely.
java.io.IOException
- If the chunk could not be read.public void close() throws java.io.IOException
Body
close
in interface Body
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |