Added in API level 1

ByteChannel

public interface ByteChannel
implements ReadableByteChannel, WritableByteChannel

java.nio.channels.ByteChannel
DatagramChannel A selectable channel for datagram-oriented sockets. 
FileChannel A channel for reading, writing, mapping, and manipulating a file. 
SeekableByteChannel A byte channel that maintains a current position and allows the position to be changed. 
SocketChannel A selectable channel for stream-oriented connecting sockets. 


A channel that can read and write bytes. This interface simply unifies ReadableByteChannel and WritableByteChannel; it does not specify any new operations.

Summary

Inherited methods

abstract int read(ByteBuffer dst)

Reads a sequence of bytes from this channel into the given buffer.

abstract int write(ByteBuffer src)

Writes a sequence of bytes to this channel from the given buffer.

abstract void close()

Closes this channel.

abstract boolean isOpen()

Tells whether or not this channel is open.

abstract void close()

Closes this stream and releases any system resources associated with it.

abstract void close()

Closes this resource, relinquishing any underlying resources.