summaryrefslogtreecommitdiffstats
path: root/libjava/gnu/java/nio/SelectionKeyImpl.java
diff options
context:
space:
mode:
authormkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>2003-09-25 21:14:43 +0000
committermkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>2003-09-25 21:14:43 +0000
commit0a161bd9ff43819cba7f31862e8a6ab274324e86 (patch)
tree17b727bada732a4e8ec9d8c21dcfa11399a0d8ea /libjava/gnu/java/nio/SelectionKeyImpl.java
parent4e9e744766fefa6bb0502a70a814f8edefee5bf6 (diff)
downloadppe42-gcc-0a161bd9ff43819cba7f31862e8a6ab274324e86.tar.gz
ppe42-gcc-0a161bd9ff43819cba7f31862e8a6ab274324e86.zip
2003-09-25 Michael Koch <konqueror@gmx.de>
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71797 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/gnu/java/nio/SelectionKeyImpl.java')
-rw-r--r--libjava/gnu/java/nio/SelectionKeyImpl.java8
1 files changed, 4 insertions, 4 deletions
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();
}
OpenPOWER on IntegriCloud