public interface RandomAccessBody extends Body
| Modifier and Type | Method and Description |
|---|---|
long |
transferTo(long position,
long count,
WritableByteChannel target)
Transfers the specified chunk of bytes from this body to the specified channel.
|
close, getContentLength, readlong transferTo(long position,
long count,
WritableByteChannel target)
throws IOException
position - The zero-based byte index from which to start the transfer, must not be negative.count - The maximum number of bytes to transfer, must not be negative.target - The destination channel to transfer the body chunk to, must not be null.IOException - If the body chunk could not be transferred.Copyright © 2015. All rights reserved.