question: static FileChannel newFileChannel ( String pathForWindows , String pathToCheck , Set < ? extends OpenOption > options , long pSecurityDescriptor ) throws WindowsException { Flags flags = Flags . toFlags ( options ) ; if ( ! flags . read && ! flags . write ) { if ( flags . append ) { flags . write = true ; } else { flags . read = true ; } } if ( flags . read && flags . append ) throw new IllegalArgumentException ( "READ + APPEND not allowed" ) ; if ( flags . append && flags . truncateExisting ) throw new IllegalArgumentException ( "APPEND + TRUNCATE_EXISTING not allowed" ) ; FileDescriptor fdObj = open ( pathForWindows , pathToCheck , flags , pSecurityDescriptor ) ; return FileChannelImpl . open ( fdObj , pathForWindows , flags . read , flags . write , flags . append , null ) ; }
target:  Open/creates file, returning FileChannel to access the file