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