|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjerklib.util.InetAddressUtils
public class InetAddressUtils
Utility functions related to IP Addresses.
Constructor Summary | |
---|---|
InetAddressUtils()
|
Method Summary | |
---|---|
static byte[] |
numericIpToByteArray(long ip)
Given an ip in numeric format, return a byte array that can be fed to InetAddress. |
static InetAddress |
parseNumericIp(long ip)
Given an ip in numeric format, return the InetAddress. |
static InetAddress |
parseNumericIp(String ip)
Given an ip in a numeric, string format, return the InetAddress. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InetAddressUtils()
Method Detail |
---|
public static InetAddress parseNumericIp(String ip)
ip
- the ip address in string format (such as 3232235780)
public static InetAddress parseNumericIp(long ip)
ip
- the ip address in long (such as 3232235780)
public static byte[] numericIpToByteArray(long ip)
ip
- the ip address in long (such as 3232235780)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |