SSF.Net.Util
Class IP_s
java.lang.Object
|
+--SSF.Net.Util.IP_s
- public class IP_s
- extends java.lang.Object
|
Constructor Summary |
IP_s()
|
|
Method Summary |
static byte |
getMaskBits(java.lang.String addr)
|
static java.lang.String |
IPtoBits(int ip)
|
static java.lang.String |
IPtoHex(int ip)
|
static java.lang.String |
IPtoString(int ipAddr)
IPtoString (4) will give "0.0.0.4" |
static int |
mask(int ipaddr,
int bin)
Returns an IP address using the bin most significant bits of this IP
address |
static int |
StrToInt(java.lang.String addr)
IP_s.StrToInt ("0.0.0.4") will give 4 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
USE_OLD_IMPLEMENTATION
public static final boolean USE_OLD_IMPLEMENTATION
- See Also:
- Constant Field Values
IP_s
public IP_s()
IPtoString
public static java.lang.String IPtoString(int ipAddr)
- IPtoString (4) will give "0.0.0.4"
StrToInt
public static int StrToInt(java.lang.String addr)
- IP_s.StrToInt ("0.0.0.4") will give 4
getMaskBits
public static byte getMaskBits(java.lang.String addr)
mask
public static int mask(int ipaddr,
int bin)
- Returns an IP address using the bin most significant bits of this IP
address
IPtoHex
public static java.lang.String IPtoHex(int ip)
IPtoBits
public static java.lang.String IPtoBits(int ip)