Top Description Constructors Methods
org.newsclub.net.unix

pack-priv final Class SocketAddressUtil

extends Object
Class Inheritance
Annotations
@IgnoreJRERequirement
Imports
java.net.SocketAddress, .SocketException, .UnixDomainSocketAddress, org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement

SocketAddress-related helper methods.
Author
Christian Kohlschütter

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static AFSupplier<? extends AFSocketAddress>

Returns:

A supplier for the given address, or null.
supplyAFSocketAddress
(SocketAddress
The address.
address
)

Try to convert a SocketAddress that is not a AFSocketAddress to one that is.

pack-priv static AFSupplier<AFUNIXSocketAddress>

Returns:

A supplier for the given address, or null.
supplyAFUNIXSocketAddress
(SocketAddress
The address.
address
)

Try to convert a SocketAddress that is not a AFUNIXSocketAddress to one that is.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

SocketAddressUtilback to summary
private SocketAddressUtil()

Method Detail

supplyAFSocketAddressback to summary
pack-priv static AFSupplier<? extends AFSocketAddress> supplyAFSocketAddress(SocketAddress address)

Try to convert a SocketAddress that is not a AFSocketAddress to one that is.

Parameters
address:SocketAddress

The address.

Returns:AFSupplier<? extends AFSocketAddress>

A supplier for the given address, or null.

supplyAFUNIXSocketAddressback to summary
pack-priv static AFSupplier<AFUNIXSocketAddress> supplyAFUNIXSocketAddress(SocketAddress address)

Try to convert a SocketAddress that is not a AFUNIXSocketAddress to one that is.

Parameters
address:SocketAddress

The address.

Returns:AFSupplier<AFUNIXSocketAddress>

A supplier for the given address, or null.