RandomAccessFile类的getChannel()方法 (RandomAccessFile Class getChannel() method)
getChannel() method is available in java.io package.
getChannel()方法在java.io包中可用。
getChannel() method is used to get the distinct FileChannel linked with this RandomAccessFile stream.
getChannel()方法用于获取与此RandomAccessFile流链接的独特FileChannel。
getChannel() method is a non-static method, it is accessible with the class object only and if we try to access the method with the class name then we will get an error.
getChannel()方法是一个非静态方法,只能通过类对象访问,如果尝试使用类名称访问该方法,则会收到错误消息。
getChannel() method does not throw an exception at the time of returning the file channel.<