diff options
| author | Michael Koch <konqueror@gmx.de> | 2002-11-20 16:19:08 +0000 |
|---|---|---|
| committer | Michael Koch <mkoch@gcc.gnu.org> | 2002-11-20 16:19:08 +0000 |
| commit | 3ebb998e6fd4db2150c4c60f0977b2b4ca3d39fa (patch) | |
| tree | 79f607cf0830a31df050e0c63c02b22944c84a26 /libjava/java/nio/channels/ServerSocketChannel.java | |
| parent | e6226a2f87a75d3daf21896affc0857a94d5d4ac (diff) | |
2002-11-20 Michael Koch <konqueror@gmx.de>
* java/io/FileInputStream.java
(getChannel): New method.
* java/io/FileOutputStream.java
(getChannel): New method.
* java/net/ServerSocket.java
(bind): Removed duplicate code and called another bind method instead.
* java/nio/channels/SelectionKey.java
(isValid): Removed wrong exception documentation.
* java/nio/channels/ServerSocketChannel.java
(accept): Added exception documentation.
(open): Fixed typo, added exception documentation.
* java/nio/channels/spi/AbstractSelectableChannel.java
(implCloseChannel): Added exception documentation.
(add): Reformated.
(register): Added exception documentation.
From-SVN: r59307
Diffstat (limited to 'libjava/java/nio/channels/ServerSocketChannel.java')
| -rw-r--r-- | libjava/java/nio/channels/ServerSocketChannel.java | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/libjava/java/nio/channels/ServerSocketChannel.java b/libjava/java/nio/channels/ServerSocketChannel.java index ed8d39264df..16a3a82df5b 100644 --- a/libjava/java/nio/channels/ServerSocketChannel.java +++ b/libjava/java/nio/channels/ServerSocketChannel.java @@ -60,7 +60,18 @@ public abstract class ServerSocketChannel } /** - * Accepts a connection made to this channel's socket. + * Accepts a connection made to this channel's socket. + * + * @exception IOException If an error occurs + * @exception AsynchronousCloseException If another thread closes this + * channel while the accept operation is in progress. + * @exception ClosedByInterruptException If another thread interrupts the + * current thread while the accept operation is in progress, thereby closing + * the channel and setting the current thread's interrupt status. + * @exception ClosedChannelException If the channel is closed. + * @exception NotYetBoundException If the channel's socket is not yet bound. + * @exception SecurityException If a security manager has been installed and + * it does not permit access to the remote endpoint of the new connection. */ public abstract SocketChannel accept (); @@ -70,7 +81,9 @@ public abstract class ServerSocketChannel public abstract ServerSocket socket (); /** - * Opens a server socker channel. + * Opens a server socket channel. + * + * @exception IOException If an error occurs */ public static ServerSocketChannel open () throws IOException { |
