Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.nio.channels.spi

Class AbstractInterruptibleChannel

java.lang.Object
|
+--java.nio.channels.spi.AbstractInterruptibleChannel

All Implemented Interfaces:

Channel, InterruptibleChannel


public abstract class AbstractInterruptibleChannel

extends Object

implements Channel, InterruptibleChannel

Since:Author:

Constructor Summary

AbstractInterruptibleChannel()

Initializes the channel.

Method Summary

voidbegin()

Marks the beginning of an I/O operation that might block indefinitely.
voidclose()

Closes the channel.
voidend(boolean completed)

Marks the end of an I/O operation that might block indefinitely.
voidimplCloseChannel()

Closes the channel.
booleanisOpen()

Tells whether or not this channel is open.

Constructor Details

AbstractInterruptibleChannel

protected AbstractInterruptibleChannel()

Initializes the channel.


Method Details

begin

protected final void begin()

Marks the beginning of an I/O operation that might block indefinitely.


close

public final void close()

Closes the channel.

Throws:


end

protected final void end(boolean completed)

Marks the end of an I/O operation that might block indefinitely.

Parameters:

Throws:


implCloseChannel

protected void implCloseChannel()

Closes the channel.

Throws:


isOpen

public final boolean isOpen()

Tells whether or not this channel is open.