com.eurotech.framework.core.net.util
Class NetworkUtil
java.lang.Object
com.eurotech.framework.core.net.util.NetworkUtil
public class NetworkUtil
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NetworkUtil
public NetworkUtil()
calculateNetwork
public static String calculateNetwork(String ipAddress,
String netmask)
calculateBroadcast
public static String calculateBroadcast(String ipAddress,
String netmask)
getNetmaskStringForm
public static String getNetmaskStringForm(int prefix)
throws EsfException
- Throws:
EsfException
getNetmaskShortForm
public static short getNetmaskShortForm(String netmask)
throws EsfException
- Throws:
EsfException
dottedQuad
public static String dottedQuad(int ip)
convertIp4Address
public static int convertIp4Address(String ipAddress)
packIp4AddressBytes
public static int packIp4AddressBytes(short[] bytes)
unpackIP4AddressInt
public static short[] unpackIP4AddressInt(int address)
convertIP6Address
public static byte[] convertIP6Address(String fullFormIP6Address)
convertIP6Address
public static String convertIP6Address(byte[] bytes)
macToString
public static String macToString(byte[] mac)
macToBytes
public static byte[] macToBytes(String mac)
Copyright © 2013. All Rights Reserved.