src/java.base/share/classes/java/nio/channels/spi/SelectorProvider.java
branchunixdomainchannels
changeset 58801 119ac9128c1b
parent 55026 a8673ccddffd
--- a/src/java.base/share/classes/java/nio/channels/spi/SelectorProvider.java	Fri Oct 25 14:50:16 2019 +0100
+++ b/src/java.base/share/classes/java/nio/channels/spi/SelectorProvider.java	Fri Oct 25 15:56:35 2019 +0100
@@ -317,8 +317,39 @@
      *
      * @since 1.5
      */
-   public Channel inheritedChannel() throws IOException {
+    public Channel inheritedChannel() throws IOException {
+        return null;
+    }
+
+    /**
+     * Returns a {@link SocketChannel} from the given protocol family.
+     *
+     * @param family the protocol family
+     *
+     * @return a SocketChannel
+     *
+     * @throws IOException if an I/O error occurs
+     * @throws UnsupportedAddressTypeException if the protocol family not supported
+     *
+     * @since 14
+     */
+    public SocketChannel openSocketChannel(ProtocolFamily family) throws IOException {
         return null;
-   }
+    }
 
+    /**
+     * Returns a {@link ServerSocketChannel} from the given protocol family.
+     *
+     * @param family the protocol family
+     *
+     * @return a ServerSocketChannel
+     *
+     * @throws IOException if an I/O error occurs
+     * @throws UnsupportedAddressTypeException if the protocol family not supported
+     *
+     * @since 14
+     */
+    public ServerSocketChannel openServerSocketChannel(ProtocolFamily family) throws IOException {
+        return null;
+    }
 }