/** * Open a file on the filesystem. * * @param fileName the file name of the file to open * @param options the file-open options * @return the file channel * @throws IOException if an I/O error occurs */ public FileChannel openFile(String fileName, OptionMap options) throws IOException { if (fileName == null) { throw msg.nullParameter("fileName"); } return openFile(new File(fileName), options); }
/** * Open a file on the filesystem. * * @param file the file to open * @param access the file access level to use * @return the file channel * @throws IOException if an I/O error occurs */ public FileChannel openFile(File file, FileAccess access) throws IOException { if (access == null) { throw msg.nullParameter("access"); } return openFile(file, FILE_ACCESS_OPTION_MAPS.get(access)); }
/** * Open a file on the filesystem. * * @param fileName the file name of the file to open * @param access the file access level to use * @return the file channel * @throws IOException if an I/O error occurs */ public FileChannel openFile(String fileName, FileAccess access) throws IOException { if (access == null) { throw msg.nullParameter("access"); } if (fileName == null) { throw msg.nullParameter("fileName"); } return openFile(new File(fileName), FILE_ACCESS_OPTION_MAPS.get(access)); }
/** * Open a file on the filesystem. * * @param file the file to open * @param access the file access level to use * @return the file channel * @throws IOException if an I/O error occurs */ public FileChannel openFile(File file, FileAccess access) throws IOException { if (access == null) { throw msg.nullParameter("access"); } return openFile(file, FILE_ACCESS_OPTION_MAPS.get(access)); }
/** * Open a file on the filesystem. * * @param fileName the file name of the file to open * @param options the file-open options * @return the file channel * @throws IOException if an I/O error occurs */ public FileChannel openFile(String fileName, OptionMap options) throws IOException { if (fileName == null) { throw msg.nullParameter("fileName"); } return openFile(new File(fileName), options); }
/** * Open a file on the filesystem. * * @param fileName the file name of the file to open * @param access the file access level to use * @return the file channel * @throws IOException if an I/O error occurs */ public FileChannel openFile(String fileName, FileAccess access) throws IOException { if (access == null) { throw msg.nullParameter("access"); } if (fileName == null) { throw msg.nullParameter("fileName"); } return openFile(new File(fileName), FILE_ACCESS_OPTION_MAPS.get(access)); }