aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/nio
diff options
context:
space:
mode:
authorMichael Koch <konqueror@gmx.de>2003-12-19 16:31:59 +0000
committerMichael Koch <mkoch@gcc.gnu.org>2003-12-19 16:31:59 +0000
commit9175d628d00f9f3a5a98a19aba733f6e66452f8f (patch)
tree72be232386a4bfad39f70492dd66772f2f41e3b9 /libjava/java/nio
parent71646cb7775b48d6df03036bbdeb083bf6c0fd74 (diff)
downloadgcc-9175d628d00f9f3a5a98a19aba733f6e66452f8f.zip
gcc-9175d628d00f9f3a5a98a19aba733f6e66452f8f.tar.gz
gcc-9175d628d00f9f3a5a98a19aba733f6e66452f8f.tar.bz2
OutputStreamChannel.java: New file.
2003-12-19 Michael Koch <konqueror@gmx.de> * gnu/java/nio/OutputStreamChannel.java: New file. * java/nio/channels/Channels.java (newChannel): Implemented. * Makefile.am (ordinary_java_source_files): Added gnu/java/nio/OutputStreamChannel.java. * Makefile.in: Regenerated. From-SVN: r74840
Diffstat (limited to 'libjava/java/nio')
-rw-r--r--libjava/java/nio/channels/Channels.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/libjava/java/nio/channels/Channels.java b/libjava/java/nio/channels/Channels.java
index caad49c..f8358ae 100644
--- a/libjava/java/nio/channels/Channels.java
+++ b/libjava/java/nio/channels/Channels.java
@@ -38,6 +38,7 @@ exception statement from your version. */
package java.nio.channels;
import gnu.java.nio.InputStreamChannel;
+import gnu.java.nio.OutputStreamChannel;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.Reader;
@@ -78,9 +79,9 @@ public final class Channels
/**
* Constructs a channel that writes bytes to the given stream.
*/
- public static WritableByteChannel newChannel (OutputStream out)
+ public static WritableByteChannel newChannel(OutputStream out)
{
- throw new Error ("not implemented");
+ return new OutputStreamChannel (out);
}
/**