com.ibm.nio

Class NIOUtils

  • java.lang.Object
    • com.ibm.nio.NIOUtils


  • public class NIOUtils
    extends java.lang.Object
    Utility class for NIO on IBM JRE's.
    • Constructor Summary

      Constructors 
      Constructor and Description
      NIOUtils() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static 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

        equals, 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