Package anlavn.net

Class Network

java.lang.Object
anlavn.net.Network

public class Network extends Object
The Network class supports get network information: WLAN information, address IPv4.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    Parameters of currently available wireless network.
    static class 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static final String
    Use this method to get your public IPv4 address.
    static final Network.WLAN
    Use this method to get information about the available wireless network interface and their status.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Network

      public Network()
  • Method Details

    • myWLAN

      public static final Network.WLAN myWLAN()
      Use this method to get information about the available wireless network interface and their status.
      Returns:
      status of the parameter.
    • myIPv4

      public static final String myIPv4() throws IOException
      Use this method to get your public IPv4 address.
      Returns:
      IPv4 address.
      Throws:
      IOException - throw exception if there is no internet connection.