{
filename = transform(filename);
final FileSystem fs = getFileSystem(filename);
if (fs == null)
throw new FileNotFoundException("No file system for "+filename);
if ((fs.capabilities() & FSCapability.RANDOM_WRITE) == 0)
throw new IOException("File system not supporting random writes for "+ filename);
return fs.writeFileRandom(filename);
}
/** Delete the named file. Returns false if the scheme of filename cannot