public static AsyncFile open ( Executor executor , Path path , Set < OpenOption > openOptions ) throws IOException { FileChannel channel = doOpenChannel ( path , openOptions ) ; return new AsyncFile ( executor , channel , path , null ) ; }
Opens file synchronously .