protected class InputStreamBodyGenerator.ISBody extends Object implements Body
Modifier | Constructor and Description |
---|---|
protected |
InputStreamBodyGenerator.ISBody() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Releases any resources associated with this body.
|
long |
getContentLength()
Gets the length of the body.
|
long |
read(ByteBuffer buffer)
Reads the next chunk of bytes from the body.
|
public long getContentLength()
Body
getContentLength
in interface Body
public long read(ByteBuffer buffer) throws IOException
Body
read
in interface Body
buffer
- The buffer to store the chunk in, must not be null
.-1
if the body has been read completely.IOException
- If the chunk could not be read.public void close() throws IOException
Body
close
in interface Body
IOException
Copyright © 2015. All rights reserved.