1 |
/* Channel.java -- |
/* Channel.java -- |
2 |
Copyright (C) 2002 Free Software Foundation, Inc. |
Copyright (C) 2002, 2004 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
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; |
package java.nio.channels; |
40 |
|
|
41 |
import java.io.IOException; |
import java.io.IOException; |
42 |
|
|
|
|
|
43 |
public interface Channel |
public interface Channel |
44 |
{ |
{ |
45 |
/** |
/** |
46 |
* Tells whether this channel is open or not |
* Tells whether this channel is open or not |
47 |
|
* |
48 |
|
* @return <code>true</code>if channel is open, |
49 |
|
* </code>false</code> otherwise |
50 |
*/ |
*/ |
51 |
boolean isOpen(); |
boolean isOpen(); |
52 |
|
|