summaryrefslogtreecommitdiff
path: root/java/io/FileOutputStream.java
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2005-04-29 16:57:05 +0000
committerMark Wielaard <mark@klomp.org>2005-04-29 16:57:05 +0000
commit482077092ade857677d3e918afe869c9e923b3e4 (patch)
tree1241343b8c61f7805aa6810d70da17cbd06733dc /java/io/FileOutputStream.java
parentddeb4663884c7c06a0be469b7cdbe5d2a406f326 (diff)
downloadclasspath-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.java8
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));
}
/**