aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/nio
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/java/nio')
-rw-r--r--libjava/java/nio/channels/Channels.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/libjava/java/nio/channels/Channels.java b/libjava/java/nio/channels/Channels.java
index 98fc2b6..caad49c 100644
--- a/libjava/java/nio/channels/Channels.java
+++ b/libjava/java/nio/channels/Channels.java
@@ -1,5 +1,5 @@
/* Channels.java --
- Copyright (C) 2002 Free Software Foundation, Inc.
+ Copyright (C) 2002, 2003 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -37,6 +37,7 @@ exception statement from your version. */
package java.nio.channels;
+import gnu.java.nio.InputStreamChannel;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.Reader;
@@ -69,9 +70,9 @@ public final class Channels
/**
* Constructs a channel that reads bytes from the given stream.
*/
- public static ReadableByteChannel newChannel (InputStream in)
+ public static ReadableByteChannel newChannel(InputStream in)
{
- throw new Error ("not implemented");
+ return new InputStreamChannel(in);
}
/**