Commit ecfef45b by Michael Koch

2002-11-18 Michael Koch <konqueror@gmx.de>

	* java/nio/channels/SelectionKey.java
	(isValid): Added exception documentation.
	* java/nio/channels/Selector.java
	(open): Declare "throws IOException".

From-SVN: r59219
parent 3386451d
2002-11-17 Jesse Rosenstock <jmr@ugcs.caltech.edu> 2002-11-18 Michael Koch <konqueror@gmx.de>
* java/nio/channels/SelectionKey.java
(isValid): Added exception documentation.
* java/nio/channels/Selector.java
(open): Declare "throws IOException".
2002-11-18 Jesse Rosenstock <jmr@ugcs.caltech.edu>
* java/nio/charset/Charset.java * java/nio/charset/Charset.java
(<clinit>): New method. (<clinit>): New method.
......
...@@ -147,6 +147,8 @@ public abstract class SelectionKey ...@@ -147,6 +147,8 @@ public abstract class SelectionKey
/** /**
* Tells whether or not this key is valid. * Tells whether or not this key is valid.
*
* @exception CancelledKeyException If this key has been cancelled
*/ */
public abstract boolean isValid (); public abstract boolean isValid ();
......
...@@ -59,7 +59,7 @@ public abstract class Selector ...@@ -59,7 +59,7 @@ public abstract class Selector
* *
* @exception IOException If an error occurs * @exception IOException If an error occurs
*/ */
public static Selector open () public static Selector open () throws IOException
{ {
return SelectorProvider.provider ().openSelector (); return SelectorProvider.provider ().openSelector ();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment