jdk/src/share/classes/sun/nio/ch/SelectorProviderImpl.java
changeset 1152 29d6145d1097
parent 2 90ce3da70b43
child 1247 b4c26443dee5
equal deleted inserted replaced
1151:4070cecdb99d 1152:29d6145d1097
    27 
    27 
    28 import java.io.FileDescriptor;
    28 import java.io.FileDescriptor;
    29 import java.io.IOException;
    29 import java.io.IOException;
    30 import java.net.ServerSocket;
    30 import java.net.ServerSocket;
    31 import java.net.Socket;
    31 import java.net.Socket;
       
    32 import java.net.ProtocolFamily;
    32 import java.nio.channels.*;
    33 import java.nio.channels.*;
    33 import java.nio.channels.spi.*;
    34 import java.nio.channels.spi.*;
    34 
    35 
    35 
    36 
    36 public abstract class SelectorProviderImpl
    37 public abstract class SelectorProviderImpl
    37     extends SelectorProvider
    38     extends SelectorProvider
    38 {
    39 {
    39 
    40 
    40     public DatagramChannel openDatagramChannel() throws IOException {
    41     public DatagramChannel openDatagramChannel() throws IOException {
    41         return new DatagramChannelImpl(this);
    42         return new DatagramChannelImpl(this);
       
    43     }
       
    44 
       
    45     public DatagramChannel openDatagramChannel(ProtocolFamily family) throws IOException {
       
    46         return new DatagramChannelImpl(this, family);
    42     }
    47     }
    43 
    48 
    44     public Pipe openPipe() throws IOException {
    49     public Pipe openPipe() throws IOException {
    45         return new PipeImpl(this);
    50         return new PipeImpl(this);
    46     }
    51     }
    52     }
    57     }
    53 
    58 
    54     public SocketChannel openSocketChannel() throws IOException {
    59     public SocketChannel openSocketChannel() throws IOException {
    55         return new SocketChannelImpl(this);
    60         return new SocketChannelImpl(this);
    56     }
    61     }
    57 
       
    58 }
    62 }