public abstract class HttpResponseBodyPart extends HttpContent
provider, uri| Constructor and Description |
|---|
HttpResponseBodyPart(URI uri,
AsyncHttpProvider provider) |
| Modifier and Type | Method and Description |
|---|---|
abstract ByteBuffer |
getBodyByteBuffer()
Return a
ByteBuffer that wraps the actual bytes read from the response's chunk. |
abstract byte[] |
getBodyPartBytes()
Return the response body's part bytes received.
|
abstract int |
writeTo(OutputStream outputStream)
Write the available bytes to the
OutputStream |
getUrl, providerpublic HttpResponseBodyPart(URI uri, AsyncHttpProvider provider)
public abstract byte[] getBodyPartBytes()
public abstract int writeTo(OutputStream outputStream) throws IOException
OutputStreamoutputStream - IOExceptionpublic abstract ByteBuffer getBodyByteBuffer()
ByteBuffer that wraps the actual bytes read from the response's chunk. The ByteBuffer
capacity is equal to the number of bytes available.ByteBufferCopyright © 2015. All rights reserved.