Rice Pastry API

org.mpisws.p2p.filetransfer
Class TempFileAllocationStrategy

java.lang.Object
  extended by org.mpisws.p2p.filetransfer.TempFileAllocationStrategy
All Implemented Interfaces:
FileAllocationStrategy

public class TempFileAllocationStrategy
extends java.lang.Object
implements FileAllocationStrategy

Just creates a temp file, ignoring the filename/size

Author:
Jeff Hoye

Constructor Summary
TempFileAllocationStrategy()
           
TempFileAllocationStrategy(java.lang.String prefix, java.lang.String suffix)
           
 
Method Summary
 java.io.File getFile(java.lang.String s, long offset, long length)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TempFileAllocationStrategy

public TempFileAllocationStrategy()

TempFileAllocationStrategy

public TempFileAllocationStrategy(java.lang.String prefix,
                                  java.lang.String suffix)
Method Detail

getFile

public java.io.File getFile(java.lang.String s,
                            long offset,
                            long length)
                     throws java.io.IOException
Specified by:
getFile in interface FileAllocationStrategy
Parameters:
s - the file name (application specific)
Returns:
Throws:
java.io.IOException

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.