public class InetMask
extends java.lang.Object
Constructor and Description |
---|
InetMask(java.lang.String textual)
Generate an IP mask from its textual representation.
|
Modifier and Type | Method and Description |
---|---|
java.util.LinkedList |
filterLocal()
Use JDK 1.4 methods.
|
boolean |
match(java.net.InetAddress a)
Test if an IP addr matches with the mask
|
public InetMask(java.lang.String textual) throws java.net.UnknownHostException
textual
- textual representation of the IP maskjava.net.UnknownHostException
- if exceptionpublic boolean match(java.net.InetAddress a)
a
- ip addrpublic java.util.LinkedList filterLocal()