From 2ab94420797ce3db177bc98908a301b2861738b5 Mon Sep 17 00:00:00 2001 From: mkoch Date: Tue, 11 Feb 2003 09:44:57 +0000 Subject: 2003-02-11 Michael Koch * gnu/java/nio/natCharBufferImpl.cc (nio_cast): Removed. (nio_put_*): Removed. (nio_get_*): Removed. * gnu/java/nio/natDoubleBufferImpl.cc (nio_cast): Removed. (nio_put_*): Removed. (nio_get_*): Removed. * gnu/java/nio/natFloatBufferImpl.cc (nio_cast): Removed. (nio_put_*): Removed. (nio_get_*): Removed. * gnu/java/nio/natIntBufferImpl.cc (nio_cast): Removed. (nio_put_*): Removed. (nio_get_*): Removed. * gnu/java/nio/natLongBufferImpl.cc (nio_cast): Removed. (nio_put_*): Removed. (nio_get_*): Removed. * gnu/java/nio/natShortBufferImpl.cc (nio_cast): Removed. (nio_put_*): Removed. (nio_get_*): Removed. * gnu/java/nio/SelectorProviderImpl.java (openDatagramChannel): Throws IOException. (openPipe): Throws IOException. (openSelector): Throws IOException. (openServerSocketChannel): Throws IOException. (openSocketChannel): Throws IOException. * gnu/java/nio/ServerSocketChannelImpl.java (ServerSocketChannelImpl): Throws IOException. (implCloseSelectableChannel): Throws IOException. (implConfigureBlocking): Throws IOException. * java/nio/ByteBuffer.java (readOnly): Removed. (hasArray): Use isReadOnly() instead of readOnly. (array): Use isReadOnly() instead of readOnly. (arrayOffset): Use isReadOnly() instead of readOnly. * java/nio/CharBuffer.java (CharBuffer): Implements Cloneable and CharSequence. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@62688 138bc75d-0d04-0410-961f-82ee72b054a4 --- libjava/gnu/java/nio/SelectorProviderImpl.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libjava/gnu/java/nio/SelectorProviderImpl.java') diff --git a/libjava/gnu/java/nio/SelectorProviderImpl.java b/libjava/gnu/java/nio/SelectorProviderImpl.java index 3fedfc73546..d58e10a010e 100644 --- a/libjava/gnu/java/nio/SelectorProviderImpl.java +++ b/libjava/gnu/java/nio/SelectorProviderImpl.java @@ -37,6 +37,7 @@ exception statement from your version. */ package gnu.java.nio; +import java.io.IOException; import java.nio.channels.DatagramChannel; import java.nio.channels.Pipe; import java.nio.channels.ServerSocketChannel; @@ -51,26 +52,31 @@ public class SelectorProviderImpl extends SelectorProvider } public DatagramChannel openDatagramChannel () + throws IOException { return new DatagramChannelImpl (this); } public Pipe openPipe () + throws IOException { return new PipeImpl (); } public AbstractSelector openSelector () + throws IOException { return new SelectorImpl (this); } public ServerSocketChannel openServerSocketChannel () + throws IOException { return new ServerSocketChannelImpl (this); } public SocketChannel openSocketChannel () + throws IOException { return new SocketChannelImpl (this); } -- cgit v1.2.1