|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openflow.util.string.IPUtil
public class IPUtil
IPUtil -- Utility class with IP related functions
| Field Summary | |
|---|---|
static int |
IP4_ADDR_LEN
Size of an IPv4 address in bytes |
| Constructor Summary | |
|---|---|
IPUtil()
|
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
|
static java.lang.String |
maskedIPToString(int ip,
int maskedBits)
Converts a masked IP to a string. |
static int |
stringToIP(java.lang.String ip)
|
static byte[] |
toByteArray(int ip)
ByteArray -- convert an integer IP address into a byte array |
static java.net.InetAddress |
toInetAddress(int ip)
toInetAddress -- convert an integer IP address into an InetAddress |
static java.lang.String |
toString(int ip)
toString -- convert an integer IP address into a string |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int IP4_ADDR_LEN
| Constructor Detail |
|---|
public IPUtil()
| Method Detail |
|---|
public static byte[] toByteArray(int ip)
ip - IP address to convert
public static java.net.InetAddress toInetAddress(int ip)
ip - IP address to convert
public static java.lang.String maskedIPToString(int ip,
int maskedBits)
ip - IP addressmaskedBits - number of bits to mask
public static java.lang.String toString(int ip)
ip - IP address to convert
public static int stringToIP(java.lang.String ip)
public static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||