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