jdk/src/share/classes/java/nio/channels/spi/SelectorProvider.java
changeset 1152 29d6145d1097
parent 715 f16baef3a20e
child 2057 3acf8e5e2ca0
--- a/jdk/src/share/classes/java/nio/channels/spi/SelectorProvider.java	Sun Aug 31 18:32:59 2008 +0100
+++ b/jdk/src/share/classes/java/nio/channels/spi/SelectorProvider.java	Sun Aug 31 18:39:01 2008 +0100
@@ -25,10 +25,8 @@
 
 package java.nio.channels.spi;
 
-import java.io.FileDescriptor;
 import java.io.IOException;
-import java.net.ServerSocket;
-import java.net.Socket;
+import java.net.ProtocolFamily;
 import java.nio.channels.*;
 import java.security.AccessController;
 import java.security.PrivilegedAction;
@@ -190,7 +188,25 @@
         throws IOException;
 
     /**
-     * Opens a pipe.  </p>
+     * Opens a datagram channel.
+     *
+     * @param   family
+     *          The protocol family
+     *
+     * @return  A new datagram channel
+     *
+     * @throws  UnsupportedOperationException
+     *          If the specified protocol family is not supported
+     * @throws  IOException
+     *          If an I/O error occurs
+     *
+     * @since 1.7
+     */
+    public abstract DatagramChannel openDatagramChannel(ProtocolFamily family)
+        throws IOException;
+
+    /**
+     * Opens a pipe. </p>
      *
      * @return  The new pipe
      */