Package org.drasyl.util
Class InetSocketAddressUtil
- java.lang.Object
-
- org.drasyl.util.InetSocketAddressUtil
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static InetSocketAddressWrapper
socketAddressFromString(String s)
Convertss
to anInetSocketAddressWrapper
.
-
-
-
Method Detail
-
socketAddressFromString
public static InetSocketAddressWrapper socketAddressFromString(@NonNull String s)
Convertss
to anInetSocketAddressWrapper
.- Parameters:
s
- string to convert- Returns:
InetSocketAddressWrapper
converted from string- Throws:
NullPointerException
- ifs
isnull
IllegalArgumentException
- ifs
does not contain hostname and port or could not be converted to a validInetSocketAddress
.
-
-