|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.nio.channels.spi.AbstractInterruptibleChannel
public abstract class AbstractInterruptibleChannel
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AbstractInterruptibleChannel()
Method Detail |
---|
protected final void begin()
public final void close() throws IOException
close
in interface Closeable
close
in interface Channel
close
in interface InterruptibleChannel
IOException
- If an error occursprotected final void end(boolean completed) throws AsynchronousCloseException
completed
- true if the task completed successfully,
false otherwise
AsynchronousCloseException
- If the channel was asynchronously
closed.
ClosedByInterruptException
- If the thread blocked in the
I/O operation was interrupted.protected abstract void implCloseChannel() throws IOException
IOException
- If an error occurspublic final boolean isOpen()
isOpen
in interface Channel
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |