97 |
|
|
98 |
private int mode; |
private int mode; |
99 |
|
|
100 |
public FileChannelImpl () |
/* Open a file. MODE is a combination of the above mode flags. */ |
101 |
|
/* This is a static factory method, so that VM implementors can decide |
102 |
|
* substitute subclasses of FileChannelImpl. */ |
103 |
|
public static FileChannelImpl create(File file, int mode) |
104 |
|
throws FileNotFoundException |
105 |
{ |
{ |
106 |
|
return new FileChannelImpl(file, mode); |
107 |
} |
} |
108 |
|
|
109 |
/* Open a file. MODE is a combination of the above mode flags. */ |
private FileChannelImpl(File file, int mode) |
110 |
public FileChannelImpl (File file, int mode) throws FileNotFoundException |
throws FileNotFoundException |
111 |
{ |
{ |
112 |
final String path = file.getPath(); |
final String path = file.getPath(); |
113 |
fd = open (path, mode); |
fd = open (path, mode); |