final FileSystem fs = getFileSystem(filename);
if (fs == null)
throw new FileNotFoundException("No file system for "+filename);
if ((fs.capabilities() & FSCapability.RANDOM_READ) == 0)
throw new IOException("File system not supporting random reads for "+ filename);
return fs.openFileRandom(filename);
}
/** Returns a RandomAccessFile implementation accessing the specificed file */
public static RandomDataOutput writeFileRandom(String filename) throws IOException
{