com.ibm.nio
Class NIOUtils
- java.lang.Object
com.ibm.nio.NIOUtils
- public class NIOUtils
- extends java.lang.Object
Constructor Summary
Constructor and Description |
---|
NIOUtils()
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
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
- public NIOUtils()
Method Detail
getFileDescriptor
- 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