Package anlavn.net
Class Network
java.lang.Object
anlavn.net.Network
The Network class supports get network information: WLAN information, address IPv4.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Parameters of currently available wireless network.static class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final String
myIPv4()
Use this method to get your public IPv4 address.static final Network.WLAN
myWLAN()
Use this method to get information about the available wireless network interface and their status.
-
Constructor Details
-
Network
public Network()
-
-
Method Details
-
myWLAN
Use this method to get information about the available wireless network interface and their status.- Returns:
- status of the parameter.
-
myIPv4
Use this method to get your public IPv4 address.- Returns:
- IPv4 address.
- Throws:
IOException
- throw exception if there is no internet connection.
-