960 |
* A file channel must be created by first creating an instance of |
* A file channel must be created by first creating an instance of |
961 |
* Input/Output/RandomAccessFile and invoking the getChannel() method on it. |
* Input/Output/RandomAccessFile and invoking the getChannel() method on it. |
962 |
*/ |
*/ |
963 |
public synchronized FileChannel getChannel () |
public final synchronized FileChannel getChannel () |
964 |
{ |
{ |
965 |
if (ch == null) |
if (ch == null) |
966 |
ch = new FileChannelImpl (fd, true, this); |
ch = new FileChannelImpl (fd, true, this); |