232 * @return The new selector
233 *
234 * @throws IOException
235 * If an I/O error occurs
236 */
237 public abstract AbstractSelector openSelector()
238 throws IOException;
239
240 /**
241 * Opens a server-socket channel.
242 *
243 * @return The new channel
244 *
245 * @throws IOException
246 * If an I/O error occurs
247 */
248 public abstract ServerSocketChannel openServerSocketChannel()
249 throws IOException;
250
251 /**
252 * Opens a socket channel.
253 *
254 * @return The new channel
255 *
256 * @throws IOException
257 * If an I/O error occurs
258 */
259 public abstract SocketChannel openSocketChannel()
260 throws IOException;
261
262 /**
263 * Returns the channel inherited from the entity that created this
264 * Java virtual machine.
265 *
266 * <p> On many operating systems a process, such as a Java virtual
267 * machine, can be started in a manner that allows the process to
268 * inherit a channel from the entity that created the process. The
269 * manner in which this is done is system dependent, as are the
270 * possible entities to which the channel may be connected. For example,
271 * on UNIX systems, the Internet services daemon (<i>inetd</i>) is used to
272 * start programs to service requests when a request arrives on an
273 * associated network port. In this example, the process that is started,
274 * inherits a channel representing a network socket.
275 *
276 * <p> In cases where the inherited channel represents a network socket
277 * then the {@link java.nio.channels.Channel Channel} type returned
278 * by this method is determined as follows:
279 *
280 * <ul>
281 *
|
232 * @return The new selector
233 *
234 * @throws IOException
235 * If an I/O error occurs
236 */
237 public abstract AbstractSelector openSelector()
238 throws IOException;
239
240 /**
241 * Opens a server-socket channel.
242 *
243 * @return The new channel
244 *
245 * @throws IOException
246 * If an I/O error occurs
247 */
248 public abstract ServerSocketChannel openServerSocketChannel()
249 throws IOException;
250
251 /**
252 *
253 * @param family The protocol family
254 *
255 * @return A new stream channel
256 *
257 * @throws IOException
258 * If an I/O error occurs
259 */
260 public abstract ServerSocketChannel openServerSocketChannel(ProtocolFamily family)
261 throws IOException;
262
263 /**
264 * Opens a socket channel.
265 *
266 * @return The new channel
267 *
268 * @throws IOException
269 * If an I/O error occurs
270 */
271 public abstract SocketChannel openSocketChannel()
272 throws IOException;
273
274 /**
275 * Opens a socket channel.
276 *
277 * @param family The protocol family
278 *
279 * @return The new channel
280 *
281 * @throws IOException
282 * If an I/O error occurs
283 */
284 public abstract SocketChannel openSocketChannel(ProtocolFamily family)
285 throws IOException;
286
287 /**
288 * Returns the channel inherited from the entity that created this
289 * Java virtual machine.
290 *
291 * <p> On many operating systems a process, such as a Java virtual
292 * machine, can be started in a manner that allows the process to
293 * inherit a channel from the entity that created the process. The
294 * manner in which this is done is system dependent, as are the
295 * possible entities to which the channel may be connected. For example,
296 * on UNIX systems, the Internet services daemon (<i>inetd</i>) is used to
297 * start programs to service requests when a request arrives on an
298 * associated network port. In this example, the process that is started,
299 * inherits a channel representing a network socket.
300 *
301 * <p> In cases where the inherited channel represents a network socket
302 * then the {@link java.nio.channels.Channel Channel} type returned
303 * by this method is determined as follows:
304 *
305 * <ul>
306 *
|