// The new length of the resource
long length;
try {
randomAccessFile = new RandomAccessFile( tempFile, "rw" );
RandomFileOutputStream tempOut = new RandomFileOutputStream( tempFile );
GetableResource gr = (GetableResource) replacee;
// Update the content with the supplied partial content, and get the result as an inputstream
gr.sendContent( tempOut, null, null, null );
// Calculate new length, if the partial put is extending it