From 1bfb64ff9a95faf36b928d9243a4a6c34005dd31 Mon Sep 17 00:00:00 2001 From: Michael Koch Date: Thu, 25 Sep 2003 21:14:43 +0000 Subject: 2003-09-25 Michael Koch * gnu/java/nio/DatagramChannelImpl.java (getNativeFD): New method. * gnu/java/nio/SelectionKeyImpl.java (SelectionKeyImpl): Class made abstract. (fd): Removed. (SelectionKeyImpl): Remove fd argument. (getNativeFD): New method. * gnu/java/nio/SocketChannelImpl.java (getNativeFD): New method. gnu/java/nio/DatagramChannelSelectionKey.java, * gnu/java/nio/SocketChannelSelectionKey.java: New files. * Makefile.am (ordinary_java_source_files): Added new files gnu/java/nio/DatagramChannelSelectionKey.java and gnu/java/nio/SocketChannelSelectionKey.java. * Makefile.in: Regenerated. From-SVN: r71797 --- libjava/gnu/java/nio/SelectionKeyImpl.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libjava/gnu/java/nio/SelectionKeyImpl.java') diff --git a/libjava/gnu/java/nio/SelectionKeyImpl.java b/libjava/gnu/java/nio/SelectionKeyImpl.java index df4faa3a935..0f704c9fb91 100644 --- a/libjava/gnu/java/nio/SelectionKeyImpl.java +++ b/libjava/gnu/java/nio/SelectionKeyImpl.java @@ -43,19 +43,17 @@ import java.nio.channels.SelectionKey; import java.nio.channels.Selector; import java.nio.channels.spi.AbstractSelectionKey; -public class SelectionKeyImpl extends AbstractSelectionKey +public abstract class SelectionKeyImpl extends AbstractSelectionKey { - int fd; private int readyOps; private int interestOps; private SelectorImpl impl; private SelectableChannel ch; - public SelectionKeyImpl (SelectableChannel ch, SelectorImpl impl, int fd) + public SelectionKeyImpl (SelectableChannel ch, SelectorImpl impl) { this.ch = ch; this.impl = impl; - this.fd = fd; } public SelectableChannel channel () @@ -101,4 +99,6 @@ public class SelectionKeyImpl extends AbstractSelectionKey { return impl; } + + public abstract int getNativeFD(); } -- cgit v1.2.3