| org.apache.mina.common.FileRegion
All known Subclasses: org.apache.mina.common.DefaultFileRegion,
FileRegion | public interface FileRegion (Code) | | Indicates the region of a file to be sent to the remote host.
author: The Apache MINA Project (dev@mina.apache.org) version: $Rev: 560320 $, $Date: 2007-07-27 11:12:26 -0600 (Fri, 27 Jul 2007) $, |
Method Summary | |
long | getCount() The number of bytes to be written from the file to the remote host. | FileChannel | getFileChannel() The open FileChannel from which data will be read to send to remote host. | long | getPosition() The current file position from which data will be read. | long | getWrittenBytes() The total number of bytes already written. | void | setPosition(long value) Updates the current file position. |
getCount | long getCount()(Code) | | The number of bytes to be written from the file to the remote host.
The number of bytes to be written. |
getFileChannel | FileChannel getFileChannel()(Code) | | The open FileChannel from which data will be read to send to remote host.
An open FileChannel. |
getPosition | long getPosition()(Code) | | The current file position from which data will be read.
The current file position. |
getWrittenBytes | long getWrittenBytes()(Code) | | The total number of bytes already written.
The total number of bytes already written. |
setPosition | void setPosition(long value)(Code) | | Updates the current file position. May not be negative.
Parameters: value - The new value for the file position. |
|
|