summaryrefslogtreecommitdiff
path: root/libjava/classpath/java/nio/channels/Channels.java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/classpath/java/nio/channels/Channels.java')
-rw-r--r--libjava/classpath/java/nio/channels/Channels.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/libjava/classpath/java/nio/channels/Channels.java b/libjava/classpath/java/nio/channels/Channels.java
index cfd8605c3b3..382a3d70538 100644
--- a/libjava/classpath/java/nio/channels/Channels.java
+++ b/libjava/classpath/java/nio/channels/Channels.java
@@ -39,6 +39,7 @@ exception statement from your version. */
package java.nio.channels;
import gnu.java.nio.ChannelReader;
+import gnu.java.nio.ChannelWriter;
import gnu.java.nio.InputStreamChannel;
import gnu.java.nio.OutputStreamChannel;
@@ -126,8 +127,7 @@ public final class Channels
public static Writer newWriter(WritableByteChannel ch, CharsetEncoder enc,
int minBufferCap)
{
- // FIXME: implement java.nio.channels.Channel.newWriter(WritableByteChannel, CharsetEncoder, int)
- throw new Error("not implemented");
+ return new ChannelWriter(ch, enc, minBufferCap);
}
/**