Enum Class AFUNIXProtocolFamily

java.lang.Object
java.lang.Enum<AFUNIXProtocolFamily>
org.newsclub.net.unix.AFUNIXProtocolFamily
All Implemented Interfaces:
Serializable, Comparable<AFUNIXProtocolFamily>, Constable, ProtocolFamily, AFProtocolFamily

public enum AFUNIXProtocolFamily extends Enum<AFUNIXProtocolFamily> implements AFProtocolFamily
Describes the protocol family supported by AFUNIXSocketAddress etc.
Author:
Christian Kohlschütter
  • Enum Constant Details

  • Method Details

    • values

      public static AFUNIXProtocolFamily[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static AFUNIXProtocolFamily valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • openDatagramChannel

      public AFDatagramChannel<?> openDatagramChannel() throws IOException
      Description copied from interface: AFProtocolFamily
      Creates a new datagram channel compatible with this protocol family.
      Specified by:
      openDatagramChannel in interface AFProtocolFamily
      Returns:
      A new datagram channel.
      Throws:
      IOException - on error.
    • openServerSocketChannel

      public AFServerSocketChannel<?> openServerSocketChannel() throws IOException
      Description copied from interface: AFProtocolFamily
      Creates a new server socket channel compatible with this protocol family.
      Specified by:
      openServerSocketChannel in interface AFProtocolFamily
      Returns:
      A new server socket channel.
      Throws:
      IOException - on error.
    • openSocketChannel

      public AFSocketChannel<?> openSocketChannel() throws IOException
      Description copied from interface: AFProtocolFamily
      Creates a new socket channel compatible with this protocol family.
      Specified by:
      openSocketChannel in interface AFProtocolFamily
      Returns:
      A new socket channel.
      Throws:
      IOException - on error.