|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mina.common.DefaultFileRegion
public class DefaultFileRegion
Constructor Summary | |
---|---|
DefaultFileRegion(FileChannel channel,
long position,
long count)
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultFileRegion(FileChannel channel, long position, long count)
Method Detail |
---|
public long getWrittenBytes()
FileRegion
getWrittenBytes
in interface FileRegion
public long getCount()
FileRegion
getCount
in interface FileRegion
public FileChannel getFileChannel()
FileRegion
getFileChannel
in interface FileRegion
public long getPosition()
FileRegion
getPosition
in interface FileRegion
public void setPosition(long value)
FileRegion
setPosition
in interface FileRegion
value
- The new value for the file position.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |