|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectau.com.lastweekend.jen.util.SubnetAddress
public class SubnetAddress
Represents an IP subnet
TODO: IP6??
| Method Summary | |
|---|---|
static SubnetAddress |
getSubnetAddress(java.lang.String subnetSpecification)
Takes either a full or partial ip address, a CIDR subnet xx.xx.xx.xx/nnn or an xx.xx.xx.xx/mm.mm.mm.mm ip/mask |
boolean |
matches(byte[] inetAddressBytes)
|
boolean |
matches(java.net.InetAddress inetAddress)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static SubnetAddress getSubnetAddress(java.lang.String subnetSpecification)
subnetSpecification -
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean matches(java.net.InetAddress inetAddress)
public boolean matches(byte[] inetAddressBytes)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||