public interface RandomAccessBody extends Body
Modifier and Type | Method and Description |
---|---|
long |
transferTo(long position,
WritableByteChannel target)
Transfers the specified chunk of bytes from this body to the specified channel.
|
getContentLength, read
long transferTo(long position, WritableByteChannel target) throws IOException
position
- The zero-based byte index from which to start the 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.