|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Body
A request body.
Method Summary | |
---|---|
void |
close()
Releases any resources associated with this body. |
long |
getContentLength()
Gets the length of the body. |
long |
read(java.nio.ByteBuffer buffer)
Reads the next chunk of bytes from the body. |
Method Detail |
---|
long getContentLength()
long read(java.nio.ByteBuffer buffer) throws java.io.IOException
buffer
- 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.void close() throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |