equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
25 |
25 |
26 package sun.nio.ch; |
26 package sun.nio.ch; |
27 |
27 |
28 import java.io.IOException; |
28 import java.io.IOException; |
29 import java.nio.channels.spi.AbstractSelector; |
29 import java.nio.channels.spi.AbstractSelector; |
|
30 import java.nio.channels.*; |
30 |
31 |
31 public class KQueueSelectorProvider |
32 public class KQueueSelectorProvider |
32 extends SelectorProviderImpl |
33 extends SelectorProviderImpl |
33 { |
34 { |
34 public AbstractSelector openSelector() throws IOException { |
35 public AbstractSelector openSelector() throws IOException { |
35 return new KQueueSelectorImpl(this); |
36 return new KQueueSelectorImpl(this); |
36 } |
37 } |
|
38 |
|
39 public Channel inheritedChannel() throws IOException { |
|
40 return InheritedChannel.getChannel(); |
|
41 } |
37 } |
42 } |