summaryrefslogtreecommitdiffstats
path: root/libjava/gnu/java/nio/channels/FileChannelImpl.java
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2006-05-13 02:16:22 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2006-05-13 02:16:22 +0000
commit3d705eb29f4ecdd97b00551d5d67c3952afaa1f2 (patch)
tree86bc2116f67a8c7a59e8cb0a7732f0fb34197168 /libjava/gnu/java/nio/channels/FileChannelImpl.java
parent5278adb993255c854b6beba0075adfe362c50210 (diff)
downloadppe42-gcc-3d705eb29f4ecdd97b00551d5d67c3952afaa1f2.tar.gz
ppe42-gcc-3d705eb29f4ecdd97b00551d5d67c3952afaa1f2.zip
* sources.am, Makefile.in: Rebuilt.
* java/util/logging/LogManager.java: Removed. * java/util/logging/Logger.java (resetLogger): New method, from Classpath. * java/io/RandomAccessFile.java: Removed. * gnu/java/nio/channels/FileChannelImpl.java (create): New method. (FileChannelImpl): Now private. * java/io/FileInputStream.java: Removed. * java/io/FileOutputStream.java: Removed. * java/security/AccessControlContext.java: Removed. * java/lang/ThreadLocal.java: Removed. * java/lang/InheritableThreadLocal.java: Removed. * java/lang/Thread.java (locals): New field. (getThreadLocals): New method. * java/lang/natThread.cc (finish_): Clear 'locals'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113735 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/gnu/java/nio/channels/FileChannelImpl.java')
-rw-r--r--libjava/gnu/java/nio/channels/FileChannelImpl.java13
1 files changed, 11 insertions, 2 deletions
diff --git a/libjava/gnu/java/nio/channels/FileChannelImpl.java b/libjava/gnu/java/nio/channels/FileChannelImpl.java
index 6059b5692a5..db68b596910 100644
--- a/libjava/gnu/java/nio/channels/FileChannelImpl.java
+++ b/libjava/gnu/java/nio/channels/FileChannelImpl.java
@@ -1,5 +1,5 @@
/* FileChannelImpl.java --
- Copyright (C) 2002, 2004, 2005 Free Software Foundation, Inc.
+ Copyright (C) 2002, 2004, 2005, 2006 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -103,7 +103,16 @@ public final class FileChannelImpl extends FileChannel
}
/* Open a file. MODE is a combination of the above mode flags. */
- public FileChannelImpl (File file, int mode) throws FileNotFoundException
+ /* This is a static factory method, so that VM implementors can decide
+ * substitute subclasses of FileChannelImpl. */
+ public static FileChannelImpl create(File file, int mode)
+ throws FileNotFoundException
+ {
+ return new FileChannelImpl(file, mode);
+ }
+
+ /* Open a file. MODE is a combination of the above mode flags. */
+ private FileChannelImpl (File file, int mode) throws FileNotFoundException
{
final String path = file.getPath();
fd = open (path, mode);
OpenPOWER on IntegriCloud