|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FileRegion
Indicates the region of a file to be sent to the remote host.
Method Summary | |
---|---|
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 |
getRemainingBytes()
The number of bytes remaining to be written from the file to the remote host. |
long |
getWrittenBytes()
The total number of bytes already written. |
void |
update(long amount)
Updates the current file position based on the specified amount. |
Method Detail |
---|
FileChannel getFileChannel()
long getPosition()
void update(long amount)
getPosition()
and
getWrittenBytes
by the given amount and decreases the value
returned by #getCount()
by the given amount
.
amount
- The new value for the file position.long getRemainingBytes()
long getWrittenBytes()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |