Package io.openems.common.utils
Class InetAddressUtils
java.lang.Object
io.openems.common.utils.InetAddressUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic Inet4Address
parseOrError
(String value) Parses a string to anInet4Address
or throws an error.static Inet4Address
parseOrNull
(String value) Parses a string to anInet4Address
or returns null.
-
Method Details
-
parseOrNull
Parses a string to anInet4Address
or returns null.- Parameters:
value
- the string value- Returns:
- an
Inet4Address
or null
-
parseOrError
Parses a string to anInet4Address
or throws an error.- Parameters:
value
- the string value- Returns:
- an
Inet4Address
- Throws:
OpenemsException
- on error
-