Interface FileChunk

    • Method Detail

      • writeTo

        long writeTo​(java.nio.channels.WritableByteChannel c)
              throws java.io.IOException
        Transfers the File region backing this FileRegion to the specified WritableByteChannel.
        Parameters:
        c - the WritableByteChannel
        Returns:
        the number of bytes that have been transferred
        Throws:
        java.io.IOException - if an error occurs while processing
        See Also:
        FileChannel.transferTo(long, long, java.nio.channels.WritableByteChannel)