Interface RandomAccessBody

    • Method Detail

      • transferTo

        long transferTo​(WritableByteChannel target)
                 throws IOException
        Transfers the specified chunk of bytes from this body to the specified channel.
        Parameters:
        target - The destination channel to transfer the body chunk to, must not be null.
        Returns:
        The non-negative number of bytes actually transferred.
        Throws:
        IOException - If the body chunk could not be transferred.