35 |
obligated to do so. If you do not wish to do so, delete this |
obligated to do so. If you do not wish to do so, delete this |
36 |
exception statement from your version. */ |
exception statement from your version. */ |
37 |
|
|
38 |
|
|
39 |
package java.nio.channels.spi; |
package java.nio.channels.spi; |
40 |
|
|
41 |
import java.io.IOException; |
import java.io.IOException; |
46 |
import java.util.LinkedList; |
import java.util.LinkedList; |
47 |
import java.util.ListIterator; |
import java.util.ListIterator; |
48 |
|
|
|
|
|
49 |
public abstract class AbstractSelectableChannel extends SelectableChannel |
public abstract class AbstractSelectableChannel extends SelectableChannel |
50 |
{ |
{ |
51 |
private boolean blocking = true; |
private boolean blocking = true; |
226 |
{ |
{ |
227 |
key = locate(selector); |
key = locate(selector); |
228 |
|
|
229 |
if (key != null) |
if (key != null && key.isValid()) |
230 |
{ |
{ |
231 |
if (att != null) |
if (att != null) |
232 |
key.attach(att); |
key.attach(att); |