org.apache.http.nio.FileContentEncoder |
Known Indirect Subclasses
|
Class Overview
A content encoder capable of transferring data directly from a FileChannel
Summary
Public Methods |
abstract
long
|
transfer(FileChannel src, long position, long count)
Transfers a portion of entity content from the given file channel
to the underlying network channel.
|
Public Methods
public
abstract
long
transfer
(FileChannel src, long position, long count)
Transfers a portion of entity content from the given file channel
to the underlying network channel.
Parameters
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 |
Returns
- The number of bytes, possibly zero,
that were actually transferred