public interface RandomAccessBody extends Body
Body.BodyState| Modifier and Type | Method and Description |
|---|---|
long |
transferTo(WritableByteChannel target)
Transfers the specified chunk of bytes from this body to the specified channel.
|
getContentLength, transferTolong transferTo(WritableByteChannel target) throws IOException
target - The destination channel to transfer the body chunk to, must not be null.IOException - If the body chunk could not be transferred.Copyright © 2016. All Rights Reserved.