Interface FileContentEncoder

    • Method Detail

      • transfer

        long transfer​(FileChannel src,
                      long position,
                      long count)
               throws IOException
        Transfers a portion of entity content from the given file channel to the underlying network channel.
        src - the source FileChannel to transfer data from.
        position - The position within the file at which the transfer is to begin; must be non-negative
        count - The maximum number of bytes to be transferred; must be non-negative
        The number of bytes, possibly zero, that were actually transferred
        IOException - if some I/O error occurs.