|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FileOutputBuffer
Simple marker class for supporting OS level send-file functionality.
| Method Summary | |
|---|---|
boolean |
isSupportFileSend()
Returns true, if OutputBuffer supports file-send mode,
or false otherwise. |
long |
sendFile(FileChannel fileChannel,
long position,
long length)
Transfers data from file channel to the socket channel directly. |
| Method Detail |
|---|
boolean isSupportFileSend()
OutputBuffer supports file-send mode,
or false otherwise.
OutputBuffer supports file-send mode,
or false otherwise.
long sendFile(FileChannel fileChannel,
long position,
long length)
throws IOException
fileChannel - FileChannelposition - The position within the file at which the transfer is
to begin; must be non-negativelength - The maximum number of bytes to be transferred;
must be non-negative
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||