org.mpisws.p2p.filetransfer
Interface FileAllocationStrategy
- All Known Implementing Classes:
- TempFileAllocationStrategy
public interface FileAllocationStrategy
Tells FileTransfer where to store the bytes of a file, usually a temp file.
- Author:
- Jeff Hoye
Method Summary |
java.io.File |
getFile(java.lang.String s,
long offset,
long length)
|
getFile
java.io.File getFile(java.lang.String s,
long offset,
long length)
throws java.io.IOException
- Parameters:
s
- the file name (application specific)size
- the total file sizestart
- the first byte intended to transferfinish
- the last byte intended to transfer
- Returns:
-
- Throws:
java.io.IOException
Copyright © 2001-2005 - Rice Pastry.