com.ning.http.client
public abstract class HttpResponseBodyPart extends HttpContent
provider, uri
Constructor and Description |
---|
HttpResponseBodyPart(java.net.URI uri,
AsyncHttpProvider provider) |
Modifier and Type | Method and Description |
---|---|
abstract java.nio.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(java.io.OutputStream outputStream)
Write the available bytes to the
OutputStream |
getUrl, provider
public HttpResponseBodyPart(java.net.URI uri, AsyncHttpProvider provider)
public abstract byte[] getBodyPartBytes()
public abstract int writeTo(java.io.OutputStream outputStream) throws java.io.IOException
OutputStream
outputStream
- java.io.IOException
public abstract java.nio.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.ByteBuffer
Copyright © 2014. All Rights Reserved.