com.quadrique.jbuildingblocks.core.io.networkInterfaces
Class JbbNetworkInterface

java.lang.Object
  extended by com.quadrique.jbuildingblocks.core.io.networkInterfaces.JbbNetworkInterface

public class JbbNetworkInterface
extends Object


Constructor Summary
JbbNetworkInterface()
           
JbbNetworkInterface(NetworkInterface netint)
           
 
Method Summary
 void afterEachTest()
          clean up the tests fixture
 void beforeEachTest()
          acquireConnection the tests fixture
 void displayInterfaceInformation()
          Write interface information to the console
 String getInterfaceInformationAsString()
           
 ArrayList<String> getIP()
          Get the list of IP addresses of this interface
 String getMAC()
          Get the MAC address of this interface
 NetworkInterface getNetworkInterface()
           
 void testGetInterfaceInformationAsString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JbbNetworkInterface

public JbbNetworkInterface()

JbbNetworkInterface

public JbbNetworkInterface(NetworkInterface netint)
                    throws NullPointerException
Throws:
NullPointerException
Method Detail

beforeEachTest

public void beforeEachTest()
acquireConnection the tests fixture


afterEachTest

public void afterEachTest()
clean up the tests fixture


getMAC

public String getMAC()
              throws SocketException
Get the MAC address of this interface

Returns:
the MAC address of this interface
Throws:
SocketException

getIP

public ArrayList<String> getIP()
Get the list of IP addresses of this interface

Returns:
the list of IP addresses of this interface
Throws:
SocketException

getInterfaceInformationAsString

public String getInterfaceInformationAsString()
                                       throws SocketException
Throws:
SocketException

testGetInterfaceInformationAsString

public void testGetInterfaceInformationAsString()

displayInterfaceInformation

public void displayInterfaceInformation()
                                 throws SocketException
Write interface information to the console

Throws:
SocketException

getNetworkInterface

public NetworkInterface getNetworkInterface()
Returns:
the networkInterface


Copyright © 2001-2008 Quadrique Corporation. All Rights Reserved.