diff options
author | Mark Wielaard <mark@klomp.org> | 2005-04-29 16:57:05 +0000 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2005-04-29 16:57:05 +0000 |
commit | 482077092ade857677d3e918afe869c9e923b3e4 (patch) | |
tree | 1241343b8c61f7805aa6810d70da17cbd06733dc /java/io/FileOutputStream.java | |
parent | ddeb4663884c7c06a0be469b7cdbe5d2a406f326 (diff) | |
download | classpath-482077092ade857677d3e918afe869c9e923b3e4.tar.gz |
2005-04-29 Dalibor Topic <robilad@kaffe.org>
* java/nio/channels/FileChannelImpl.java
(FileChannelImpl(Sting, int)): Removed.
(FileChannelImpl(File, int)) Added. Check if opened file is a
directory.
* java/io/FileInputStream.java(FileInputStream): Fixed javadocs.
Call FileChannelImpl(File, int).
* java/io/FileOutputStream.java (FileInputStream): Call
FileChannelImpl(File, int).
* java/io/RandomAccessFile.java (RandomAccessFile):
Call FileChannelImpl(File, int). Switched constructors around.
Diffstat (limited to 'java/io/FileOutputStream.java')
-rw-r--r-- | java/io/FileOutputStream.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/java/io/FileOutputStream.java b/java/io/FileOutputStream.java index d5fa2d3bb..e8784429e 100644 --- a/java/io/FileOutputStream.java +++ b/java/io/FileOutputStream.java @@ -155,10 +155,10 @@ public class FileOutputStream extends OutputStream if (s != null) s.checkWrite(file.getPath()); - ch = new FileChannelImpl (file.getPath(), (append - ? FileChannelImpl.WRITE - | FileChannelImpl.APPEND - : FileChannelImpl.WRITE)); + ch = new FileChannelImpl (file, (append + ? FileChannelImpl.WRITE + | FileChannelImpl.APPEND + : FileChannelImpl.WRITE)); } /** |