|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openflow.util.string.DPIDUtil
public class DPIDUtil
DPIDUtil -- Utility class with DPID related functions
| Field Summary | |
|---|---|
static int |
DPID_LEN
Size of an DPID in bytes |
| Constructor Summary | |
|---|---|
DPIDUtil()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
dpidToHex(long dpid)
|
static int |
hexToDec(char h)
|
static long |
hexToDPID(java.lang.String hex)
|
static void |
main(java.lang.String[] args)
|
static byte[] |
toByteArray(long dpid)
ByteArray -- convert DPID into a byte array |
static java.lang.String |
toShortString(long dpid)
Returns DPIDUtil.toString() with all occurrences of "00:" removed |
static java.lang.String |
toString(long dpid)
toString -- convert a DPID 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 DPID_LEN
| Constructor Detail |
|---|
public DPIDUtil()
| Method Detail |
|---|
public static byte[] toByteArray(long dpid)
dpid - DPID to convert
public static java.lang.String toString(long dpid)
dpid - DPID to convert
public static java.lang.String toShortString(long dpid)
public static java.lang.String dpidToHex(long dpid)
public static int hexToDec(char h)
throws java.lang.NumberFormatException
java.lang.NumberFormatException
public static long hexToDPID(java.lang.String hex)
throws java.lang.NumberFormatException
java.lang.NumberFormatExceptionpublic static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||