Rice Pastry API

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)
           
 

Method Detail

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 size
start - the first byte intended to transfer
finish - the last byte intended to transfer
Returns:
Throws:
java.io.IOException

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.