|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FileContentEncoder
A content encoder capable of transferring data directly from a FileChannel
| Method Summary | |
|---|---|
long |
transfer(FileChannel src,
long position,
long count)
Transfers a portion of entity content from the given file channel to the underlying network channel. |
| Methods inherited from interface org.apache.http.nio.ContentEncoder |
|---|
complete, isCompleted, write |
| Method Detail |
|---|
long transfer(FileChannel src,
long position,
long count)
throws IOException
src - the source FileChannel to transfer data from.position - The position within the file at which the transfer is to begin;
must be non-negativecount - The maximum number of bytes to be transferred; must be
non-negative
IOException, - if some I/O error occurs.
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||