java.nio.channels

Interface Channel

public interface Channel extends Closeable

Method Summary
voidclose()
Closes this channel
booleanisOpen()
Tells whether this channel is open or not

Method Detail

close

public void close()
Closes this channel

Throws: IOException If an error occurs

isOpen

public boolean isOpen()
Tells whether this channel is open or not

Returns: trueif channel is open, false otherwise