This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


Package java.nio.channels

Interface Summary
ByteChannel A channel that can read and write bytes.
Channel A nexus for I/O operations.
GatheringByteChannel A channel that can write bytes from a sequence of buffers.
InterruptibleChannel A channel that can be asynchronously closed and interrupted.
ReadableByteChannel A channel that can read bytes.
ScatteringByteChannel A channel that can read bytes into a sequence of buffers.
WritableByteChannel A channel that can write bytes.
 

Class Summary
Channels Utility methods for channels and streams.
DatagramChannel A selectable channel for datagram-oriented sockets.
FileChannel A channel for reading, writing, mapping, and manipulating a file.
FileChannel.MapMode A typesafe enumeration for file-mapping modes.
FileLock A token representing a lock on a region of a file.
Pipe A pair of channels that implements a unidirectional pipe.
Pipe.SinkChannel A channel representing the writable end of a java.nio.channels.Pipe.
Pipe.SourceChannel A channel representing the readable end of a java.nio.channels.Pipe.
SelectableChannel A channel that can be multiplexed via a java.nio.channels.Selector.
SelectionKey A token representing the registration of a java.nio.channels.SelectableChannel with a java.nio.channels.Selector.
Selector A multiplexor of java.nio.channels.SelectableChannel objects.
ServerSocketChannel A selectable channel for stream-oriented listening sockets.
SocketChannel A selectable channel for stream-oriented connecting sockets.
 

Exception Summary
AlreadyConnectedException Unchecked exception thrown when an attempt is made to connect a java.nio.channels.SocketChannel that is already connected.
AsynchronousCloseException Checked exception received by a thread when another thread closes the channel or the part of the channel upon which it is blocked in an I/O operation.
CancelledKeyException Unchecked exception thrown when an attempt is made to use a selection key that is no longer valid.
ClosedByInterruptException Checked exception received by a thread when another thread interrupts it while it is blocked in an I/O operation upon a channel.
ClosedChannelException Checked exception thrown when an attempt is made to invoke or complete an I/O operation upon channel that is closed, or at least closed to that operation.
ClosedSelectorException Unchecked exception thrown when an attempt is made to invoke an I/O operation upon a closed selector.
ConnectionPendingException Unchecked exception thrown when an attempt is made to connect a java.nio.channels.SocketChannel for which a non-blocking connection operation is already in progress.
FileLockInterruptionException Checked exception received by a thread when another thread interrupts it while it is waiting to acquire a file lock.
IllegalBlockingModeException Unchecked exception thrown when a blocking-mode-specific operation is invoked upon a channel in the incorrect blocking mode.
IllegalSelectorException Unchecked exception thrown when an attempt is made to register a channel with a selector that was not created by the provider that created the channel.
NoConnectionPendingException Unchecked exception thrown when the java.nio.channels.SocketChannel.finishConnect method of a java.nio.channels.SocketChannel is invoked without first successfully invoking its java.nio.channels.SocketChannel.connect method.
NonReadableChannelException Unchecked exception thrown when an attempt is made to read from a channel that was not originally opened for reading.
NonWritableChannelException Unchecked exception thrown when an attempt is made to write to a channel that was not originally opened for writing.
NotYetBoundException Unchecked exception thrown when an attempt is made to invoke an I/O operation upon a server socket channel that is not yet bound.
NotYetConnectedException Unchecked exception thrown when an attempt is made to invoke an I/O operation upon a socket channel that is not yet connected.
OverlappingFileLockException Unchecked exception thrown when an attempt is made to acquire a lock on a region of a file that overlaps a region already locked by the same Java virtual machine, or when another thread is already waiting to lock an overlapping region of the same file.
UnresolvedAddressException Unchecked exception thrown when an attempt is made to invoke a network operation upon an unresolved socket address.
UnsupportedAddressTypeException Unchecked exception thrown when an attempt is made to bind or connect to a socket address of a type that is not supported.
 



This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.