diff options
author | jfrijters <jfrijters> | 2007-07-20 13:17:25 +0400 |
---|---|---|
committer | jfrijters <jfrijters> | 2007-07-20 13:17:25 +0400 |
commit | 10a9e24f6787b08c62e8c83b75691227d874f2a7 (patch) | |
tree | ba4d5f48c4db41802eeef2a2dd286e56d180e6b4 /openjdk/sun/nio/ch/DefaultSelectorProvider.java | |
parent | 8401761ae0903bbf1807526bc65be8b129e89458 (diff) |
- Implemented DatagramChannelImpl and PipeImpl.
- More nio fixes.
Diffstat (limited to 'openjdk/sun/nio/ch/DefaultSelectorProvider.java')
-rw-r--r-- | openjdk/sun/nio/ch/DefaultSelectorProvider.java | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/openjdk/sun/nio/ch/DefaultSelectorProvider.java b/openjdk/sun/nio/ch/DefaultSelectorProvider.java index b13fb1a3..5d760166 100644 --- a/openjdk/sun/nio/ch/DefaultSelectorProvider.java +++ b/openjdk/sun/nio/ch/DefaultSelectorProvider.java @@ -45,20 +45,7 @@ public class DefaultSelectorProvider { * Returns the default SelectorProvider. */ public static SelectorProvider create() { - // TODO we should instantiate SelectorProviderImpl here - return new SelectorProvider() { - public java.nio.channels.DatagramChannel openDatagramChannel() throws IOException { - throw new Error("temporary"); - } - public java.nio.channels.Pipe openPipe() throws IOException { - throw new Error("temporary"); - } - public java.nio.channels.ServerSocketChannel openServerSocketChannel() throws IOException { - return new ServerSocketChannelImpl(this); - } - public java.nio.channels.SocketChannel openSocketChannel() throws IOException { - return new SocketChannelImpl(this); - } + return new SelectorProviderImpl() { public AbstractSelector openSelector() throws IOException { return new DotNetSelectorImpl(this); } |