java.nio.channels
Interface Channel

All Superinterfaces:
Closeable
All Known Subinterfaces:
ByteChannel, GatheringByteChannel, InterruptibleChannel, ReadableByteChannel, ScatteringByteChannel, WritableByteChannel
All Known Implementing Classes:
AbstractInterruptibleChannel, AbstractSelectableChannel, DatagramChannel, FileChannel, Pipe.SinkChannel, Pipe.SourceChannel, SelectableChannel, ServerSocketChannel, SocketChannel

public interface Channel
extends Closeable


Method Summary
 void close()
          Closes this channel
 boolean isOpen()
          Tells whether this channel is open or not
 

Method Detail

isOpen

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

Returns:
trueif channel is open, false otherwise

close

void close()
           throws IOException
Closes this channel

Specified by:
close in interface Closeable
Throws:
IOException - If an error occurs