2003-02-11 Michael Koch <konqueror@gmx.de>
* java/nio/channels/DatagramChannel.java (write): Throws IOException. (connect): Throws IOException. (disconnect): Throws IOException. (read): Throws IOException. (receive): Throws IOException. (send): Throws IOException. * java/nio/channels/Pipe.java (open): Throws IOException. * java/nio/channels/SelectableChannel.java (configureBlocking): Throws IOException. * java/nio/channels/ServerSocketChannel.java (accept): Throws IOException. * java/nio/channels/SocketChannel.java (SocketChannel): Implements ByteChannel, ScatteringByteChannel, GatheringByteChannel. (read): Throws IOException. (write): Throws IOException. (finishConnect): Throws IOException. * java/nio/channels/spi/AbstractInterruptibleChannel.java (end): Throws AsynchronousCloseException. * java/nio/channels/spi/AbstractSelectableChannel.java (configureBlocking): Throws IOException. (implCloseChannel): Throws IOException. (implCloseSelectableChannel): Throws IOException. (implConfigureBlocking): Throws IOException. * java/nio/channels/spi/SelectorProvider.java (openDatagramChannel): Throws IOException. (openPipe): Throws IOException. (openSelector): Throws IOException. (openServerSocketChannel): Throws IOException. (openSocketChannel): Throws IOException. From-SVN: r62682
This commit is contained in:
parent
e3b6a47f66
commit
d62f8f8dc7
9 changed files with 78 additions and 27 deletions
|
@ -75,6 +75,7 @@ public abstract class AbstractSelectableChannel extends SelectableChannel
|
|||
* Adjusts this channel's blocking mode.
|
||||
*/
|
||||
public final SelectableChannel configureBlocking (boolean block)
|
||||
throws IOException
|
||||
{
|
||||
synchronized (LOCK)
|
||||
{
|
||||
|
@ -90,7 +91,7 @@ public abstract class AbstractSelectableChannel extends SelectableChannel
|
|||
*
|
||||
* @exception IOException If an error occurs
|
||||
*/
|
||||
protected final void implCloseChannel ()
|
||||
protected final void implCloseChannel () throws IOException
|
||||
{
|
||||
implCloseSelectableChannel ();
|
||||
}
|
||||
|
@ -98,12 +99,13 @@ public abstract class AbstractSelectableChannel extends SelectableChannel
|
|||
/**
|
||||
* Closes this selectable channel.
|
||||
*/
|
||||
protected abstract void implCloseSelectableChannel ();
|
||||
protected abstract void implCloseSelectableChannel () throws IOException;
|
||||
|
||||
/**
|
||||
* Adjusts this channel's blocking mode.
|
||||
*/
|
||||
protected abstract void implConfigureBlocking (boolean block);
|
||||
protected abstract void implConfigureBlocking (boolean block)
|
||||
throws IOException;
|
||||
|
||||
/**
|
||||
* Tells whether or not every I/O operation on this channel will block
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue