com.ibm.nio

Class NIOUtils

  1. java.lang.Object
  2. extended bycom.ibm.nio.NIOUtils

  1. public class NIOUtils
  2. extends java.lang.Object
Utility class for NIO on IBM JRE's.

Constructor Summary

Constructor and Description
NIOUtils()

Method Summary

Modifier and Type Method and Description
  1. static
  2. long
getFileDescriptor(java.nio.channels.SocketChannel channel)
Retrieve the value of the Socket descriptor represented by the supplied connected java.nio.channels.SocketChannel.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

NIOUtils

  1. public NIOUtils()

Method Detail

getFileDescriptor

  1. public static long getFileDescriptor( java.nio.channels.SocketChannel channel)
Retrieve the value of the Socket descriptor represented by the supplied connected java.nio.channels.SocketChannel.
Parameters:
channel - A connected java.nio.channels.SocketChannel.
Returns:
The value of the socket represented by the supplied SocketChannel
Throws:
java.nio.channels.NotYetConnectedException - if the SocketChannel is not connected