org.objectweb.carol.cmi

Class InetMask


public class InetMask
extends java.lang.Object

Author:
nieuviar

Constructor Summary

InetMask(String textual)
Generate an IP mask from its textual representation.

Method Summary

LinkedList
filterLocal()
Use JDK 1.4 methods.
boolean
match(InetAddress a)

Constructor Details

InetMask

public InetMask(String textual)
            throws UnknownHostException
Generate an IP mask from its textual representation. The special case of a single address is taken into account.

Method Details

filterLocal

public LinkedList filterLocal()
Use JDK 1.4 methods.

Returns:
List of local addresses (java.net.InetAddress) matching this InetMask.


match

public boolean match(InetAddress a)