Parent Directory | Revision Log | Patch
revision 1.30.2.3 by gnu_andrew, Sat Feb 19 10:50:35 2005 UTC | revision 1.30.2.4 by gnu_andrew, Sun Mar 13 14:38:40 2005 UTC | |
---|---|---|
# | Line 155 public class FileOutputStream extends Ou | Line 155 public class FileOutputStream extends Ou |
155 | if (s != null) | if (s != null) |
156 | s.checkWrite(file.getPath()); | s.checkWrite(file.getPath()); |
157 | ||
158 | if (file.isDirectory()) | ch = new FileChannelImpl (file.getPath(), (append |
throw new FileNotFoundException(file.getPath() + " is a directory"); | ||
ch = new FileChannelImpl (file.getPath(), (append | ||
159 | ? FileChannelImpl.WRITE | ? FileChannelImpl.WRITE |
160 | | FileChannelImpl.APPEND | | FileChannelImpl.APPEND |
161 | : FileChannelImpl.WRITE)); | : FileChannelImpl.WRITE)); |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |