Examples of openFileRandom()


Examples of org.terrier.utility.io.FileSystem.openFileRandom()

    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
  {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.