summaryrefslogtreecommitdiff
path: root/java/nio/channels/Channels.java
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2006-05-01 22:41:20 +0000
committerTom Tromey <tromey@redhat.com>2006-05-01 22:41:20 +0000
commit6e6ab68e1fbb18d190529b9d942bfb96bbeed6aa (patch)
tree3601ac72ee333a27b069ff1f9e9fdf98550b6ee8 /java/nio/channels/Channels.java
parent331cb4f500d051fcca71396900ad28e591eebd0b (diff)
downloadclasspath-6e6ab68e1fbb18d190529b9d942bfb96bbeed6aa.tar.gz
* java/nio/ByteBufferImpl.java (compact): Don't reset position
in empty case. * gnu/java/nio/ChannelReader.java (read): Synchronize. (close): Synchronize. * java/nio/ShortBufferImpl.java (compact): Rewrote. * java/nio/LongBufferImpl.java (compact): Rewrote. * java/nio/IntBufferImpl.java (compact): Rewrote. * java/nio/FloatBufferImpl.java (compact): Rewrote. * java/nio/DoubleBufferImpl.java (compact): Rewrote. * java/nio/CharBufferImpl.java (compact): Rewrote. * gnu/java/nio/ChannelWriter.java: New file. * java/nio/channels/Channels.java (newWriter): Implemented.
Diffstat (limited to 'java/nio/channels/Channels.java')
-rw-r--r--java/nio/channels/Channels.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/java/nio/channels/Channels.java b/java/nio/channels/Channels.java
index a53cc2c74..382a3d705 100644
--- a/java/nio/channels/Channels.java
+++ b/java/nio/channels/Channels.java
@@ -38,8 +38,8 @@ exception statement from your version. */
package java.nio.channels;
-import gnu.classpath.NotImplementedException;
import gnu.java.nio.ChannelReader;
+import gnu.java.nio.ChannelWriter;
import gnu.java.nio.InputStreamChannel;
import gnu.java.nio.OutputStreamChannel;
@@ -126,10 +126,8 @@ public final class Channels
*/
public static Writer newWriter(WritableByteChannel ch, CharsetEncoder enc,
int minBufferCap)
- throws NotImplementedException
{
- // FIXME: implement java.nio.channels.Channel.newWriter(WritableByteChannel, CharsetEncoder, int)
- throw new Error("not implemented");
+ return new ChannelWriter(ch, enc, minBufferCap);
}
/**