java.nio.channels.spi
public abstract class AbstractInterruptibleChannel extends Object implements Channel, InterruptibleChannel
Since: 1.4
Constructor Summary | |
---|---|
protected | AbstractInterruptibleChannel()
Initializes the channel. |
Method Summary | |
---|---|
protected void | begin()
Marks the beginning of an I/O operation that might block indefinitely. |
void | close()
Closes the channel.
|
protected void | end(boolean completed)
Marks the end of an I/O operation that might block indefinitely.
|
protected abstract void | implCloseChannel()
Closes the channel.
|
boolean | isOpen()
Tells whether or not this channel is open.
|
Throws: IOException If an error occurs
Parameters: completed true if the task completed successfully, false otherwise
Throws: AsynchronousCloseException If the channel was asynchronously closed. ClosedByInterruptException If the thread blocked in the I/O operation was interrupted.
Throws: IOException If an error occurs
Returns: true if the channel is open, false otherwise