|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object SK.gnome.dwarf.tcpip.InetHost
This class represents a range of Internet hosts.
It may represent either a single host, a subnet or a domain, and may be used to filter out the java.net.InetAddress objects.
The ranges may be in one of the following formats:
Field Summary | |
static int |
ALL
This constant represents a range of all internet hosts. |
static int |
DOMAIN
This constant represents a domain-based range. |
static int |
IPADDR
This constant represents an IP-based range. |
protected java.lang.String |
range
The host range string. |
protected boolean |
single
Whether this range represents a single host or a subnet/domain. |
protected int |
type
The host range type. |
Constructor Summary | |
InetHost(java.lang.String range)
Creates a new InetHost with the given range. |
Method Summary | |
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getRange()
Returns the host range string. |
int |
getType()
Returns the host range type. |
int |
hashCode()
|
boolean |
implies(java.net.InetAddress addr)
Tests whether the given address is within the range represented by this object. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int IPADDR
public static final int DOMAIN
public static final int ALL
protected java.lang.String range
protected int type
protected boolean single
Constructor Detail |
public InetHost(java.lang.String range)
The range string may be specified as follows:
range
- the host rangeMethod Detail |
public java.lang.String getRange()
It returns the value of the range
field.
public int getType()
It returns the value of the type
field.
public boolean implies(java.net.InetAddress addr)
addr
- the internet address to check
public boolean equals(java.lang.Object obj)
public int hashCode()
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |