|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object SK.gnome.dwarf.tcpip.InetHostSet
This class represents a set of Internet host ranges.
It groups together more than one InetHost
instances, and may be used to
filter out the java.net.InetAddress objects.
The set of ranges may be specified as a comma-separated list of individual ranges, like "192.168.0.1, 192.168.1., .domain.com, .trusted.com", for example.
Field Summary | |
protected java.util.Set |
ranges
The set of InetHost host ranges. |
Constructor Summary | |
InetHostSet(java.lang.String ranges)
Creates a new InetHostSet. |
Method Summary | |
boolean |
implies(java.net.InetAddress host)
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, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.util.Set ranges
InetHost
host ranges.
Constructor Detail |
public InetHostSet(java.lang.String ranges)
The ranges
set is populated with the InetHost
instances
created from the ranges argument string.
ranges
- the comma-separated list of rangesMethod Detail |
public boolean implies(java.net.InetAddress host)
It returns true if at least one of the contained InetHost
instance
implies the given address, otherwise returns false.
host
- the internet address to check
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |