public static FileChannel newFileChannel ( Closeable ioObject , FileDescriptor fd , int mode ) { ChannelFactory factory = ChannelFactory . INSTANCE ; if ( factory == null ) { throw new LibraryNotLinkedError ( "Channel support" , "jre_channels" , "JavaNioChannelFactoryImpl" ) ; } return factory . newFileChannel ( ioObject , fd , mode ) ; }
Helps bridge between io and nio .