Lines Matching defs:channels

27  * Defines channels, which represent connections to entities that are capable of
31 * <a name="channels"></a>
33 * <blockquote><table cellspacing=1 cellpadding=0 summary="Lists channels and their descriptions">
35 * <tr><td valign=top><tt><i>{@link java.nio.channels.Channel}</i></tt></td>
37 * <tr><td valign=top><tt>&nbsp;&nbsp;<i>{@link java.nio.channels.ReadableByteChannel}</i></tt></td>
39 * <tr><td valign=top><tt>&nbsp;&nbsp;&nbsp;&nbsp;<i>{@link java.nio.channels.ScatteringByteChannel}&nbsp;&nbsp;</i></tt></td>
41 * <tr><td valign=top><tt>&nbsp;&nbsp;<i>{@link java.nio.channels.WritableByteChannel}</i></tt></td>
43 * <tr><td valign=top><tt>&nbsp;&nbsp;&nbsp;&nbsp;<i>{@link java.nio.channels.GatheringByteChannel}</i></tt></td>
45 * <tr><td valign=top><tt>&nbsp;&nbsp;<i>{@link java.nio.channels.ByteChannel}</i></tt></td>
47 * <tr><td valign=top><tt>&nbsp;&nbsp;&nbsp;&nbsp;<i>{@link java.nio.channels.SeekableByteChannel}</i></tt></td>
49 * <tr><td valign=top><tt>&nbsp;&nbsp;<i>{@link java.nio.channels.AsynchronousChannel}</i></tt></td>
51 * <tr><td valign=top><tt>&nbsp;&nbsp;&nbsp;&nbsp;<i>{@link java.nio.channels.AsynchronousByteChannel}</i></tt></td>
53 * <tr><td valign=top><tt>&nbsp;&nbsp;<i>{@link java.nio.channels.NetworkChannel}</i></tt></td>
55 * <tr><td valign=top><tt>&nbsp;&nbsp;&nbsp;&nbsp;<i>{@link java.nio.channels.MulticastChannel}</i></tt></td>
57 * <tr><td valign=top><tt>{@link java.nio.channels.Channels}</tt></td>
64 * or writing. As specified in the {@link java.nio.channels.Channel} interface,
65 * channels are either open or closed, and they are both <i>asynchronously
68 * <p> The {@link java.nio.channels.Channel} interface is extended by several
71 * <p> The {@link java.nio.channels.ReadableByteChannel} interface specifies a
72 * {@link java.nio.channels.ReadableByteChannel#read read} method that reads bytes
74 * java.nio.channels.WritableByteChannel} interface specifies a {@link
75 * java.nio.channels.WritableByteChannel#write write} method that writes bytes
76 * from a buffer to the channel. The {@link java.nio.channels.ByteChannel}
77 * interface unifies these two interfaces for the common case of channels that can
78 * both read and write bytes. The {@link java.nio.channels.SeekableByteChannel}
80 * java.nio.channels.SeekableByteChannel#position() query} and {@link
81 * java.nio.channels.SeekableByteChannel#position(long) modify} the channel's
82 * current position, and its {@link java.nio.channels.SeekableByteChannel#size
85 * <p> The {@link java.nio.channels.ScatteringByteChannel} and {@link
86 * java.nio.channels.GatheringByteChannel} interfaces extend the {@link
87 * java.nio.channels.ReadableByteChannel} and {@link
88 * java.nio.channels.WritableByteChannel} interfaces, respectively, adding {@link
89 * java.nio.channels.ScatteringByteChannel#read read} and {@link
90 * java.nio.channels.GatheringByteChannel#write write} methods that take a
93 * <p> The {@link java.nio.channels.NetworkChannel} interface specifies methods
94 * to {@link java.nio.channels.NetworkChannel#bind bind} the channel's socket,
96 * java.nio.channels.NetworkChannel#getOption get} and {@link
97 * java.nio.channels.NetworkChannel#setOption set} socket options. The {@link
98 * java.nio.channels.MulticastChannel} interface specifies methods to join
101 * <p> The {@link java.nio.channels.Channels} utility class defines static methods
112 * <blockquote><table cellspacing=1 cellpadding=0 summary="Lists file channels and their descriptions">
113 * <tr><th><p align="left">File channels</p></th><th><p align="left">Description</p></th></tr>
114 * <tr><td valign=top><tt>{@link java.nio.channels.FileChannel}</tt></td>
116 * <tr><td valign=top><tt>{@link java.nio.channels.FileLock}</tt></td>
122 * <p> The {@link java.nio.channels.FileChannel} class supports the usual
127 * instances of the {@link java.nio.channels.FileLock} class. Finally, it defines
130 * channels, and for mapping a region of the file directly into memory.
133 * java.nio.channels.FileChannel#open open} methods, or by invoking the {@code
140 * <blockquote><table cellspacing=1 cellpadding=0 summary="Lists multiplexed, non-blocking channels and their descriptions">
142 * <tr><td valign=top><tt>{@link java.nio.channels.SelectableChannel}</tt></td>
144 * <tr><td valign=top><tt>&nbsp;&nbsp;{@link java.nio.channels.DatagramChannel}</tt></td>
146 * <tr><td valign=top><tt>&nbsp;&nbsp;{@link java.nio.channels.Pipe.SinkChannel}</tt></td>
148 * <tr><td valign=top><tt>&nbsp;&nbsp;{@link java.nio.channels.Pipe.SourceChannel}</tt></td>
150 * <tr><td valign=top><tt>&nbsp;&nbsp;{@link java.nio.channels.ServerSocketChannel}&nbsp;&nbsp;</tt></td>
152 * <tr><td valign=top><tt>&nbsp;&nbsp;{@link java.nio.channels.SocketChannel}</tt></td>
154 * <tr><td valign=top><tt>{@link java.nio.channels.Selector}</tt></td>
155 * <td>A multiplexor of selectable channels</td></tr>
156 * <tr><td valign=top><tt>{@link java.nio.channels.SelectionKey}</tt></td>
159 * <tr><td valign=top><tt>{@link java.nio.channels.Pipe}</tt></td>
160 * <td>Two channels that form a unidirectional&nbsp;pipe</td></tr>
165 * channels</i>, and <i>selection keys</i>.
168 * href="SelectableChannel.html"><i>selectable channels</i></a>, which in turn are
171 * multiplexed I/O operations, one or more selectable channels are first created,
173 * java.nio.channels.SelectableChannel#register <i>registered</i>}
179 * <p> Once some channels have been registered with a selector, a <a
181 * order to discover which channels, if any, have become ready to perform one or
199 * are associated with channels. This package also defines a simple class that
205 * <p> The implementation of selectors, selectable channels, and selection keys
207 * {@link java.nio.channels.spi.SelectorProvider} class defined in the <tt>{@link
208 * java.nio.channels.spi}</tt> package. It is not expected that many developers
215 * java.nio.channels.spi.AbstractInterruptibleChannel}, {@link
216 * java.nio.channels.spi.AbstractSelectableChannel}, {@link
217 * java.nio.channels.spi.AbstractSelectionKey}, and {@link
218 * java.nio.channels.spi.AbstractSelector} classes in the <tt>{@link
219 * java.nio.channels.spi}</tt> package. When defining a custom selector provider,
220 * only the {@link java.nio.channels.spi.AbstractSelector} and {@link
221 * java.nio.channels.spi.AbstractSelectionKey} classes should be subclassed
223 * java.nio.channels.SelectableChannel} subclasses defined in this package.
227 * <blockquote><table cellspacing=1 cellpadding=0 summary="Lists asynchronous channels and their descriptions">
229 * <tr><td valign=top><tt>{@link java.nio.channels.AsynchronousFileChannel}</tt></td>
231 * <tr><td valign=top><tt>{@link java.nio.channels.AsynchronousSocketChannel}</tt></td>
233 * <tr><td valign=top><tt>{@link java.nio.channels.AsynchronousServerSocketChannel}&nbsp;&nbsp;</tt></td>
235 * <tr><td valign=top><tt>{@link java.nio.channels.CompletionHandler}</tt></td>
237 * <tr><td valign=top><tt>{@link java.nio.channels.AsynchronousChannelGroup}</tt></td>
238 * <td>A grouping of asynchronous channels for the purpose of resource sharing</td></tr>
241 * <p> {@link java.nio.channels.AsynchronousChannel Asynchronous channels} are a
243 * channels are non-blocking and define methods to initiate asynchronous
247 * specify a {@link java.nio.channels.CompletionHandler} to invoke when the
253 * It also defines the {@link java.nio.channels.AsynchronousFileChannel} class
255 * java.nio.channels.FileChannel} it supports operations to truncate the file
262 * <p> Asynchronous channels are bound to an asynchronous channel group for the
266 * asynchronous operations performed on channels in the group. The group can
272 * <p> As with selectors, the implementatin of asynchronous channels can be
274 * java.nio.channels.spi.AsynchronousChannelProvider} class defined in the
275 * <tt>{@link java.nio.channels.spi}</tt> package. It is not expected that many
290 package java.nio.channels;