org.mycore.access.mcrimpl
Class MCRIPAddress

java.lang.Object
  extended by org.mycore.access.mcrimpl.MCRIPAddress

public class MCRIPAddress
extends Object

A class for representing an IP Address, or a range of IP addresses

Author:
Matthias Kramm

Field Summary
(package private)  byte[] address
           
(package private)  byte[] mask
           
 
Constructor Summary
MCRIPAddress(InetAddress address)
           
MCRIPAddress(InetAddress address, InetAddress mask)
           
MCRIPAddress(String ip)
           
 
Method Summary
(package private)  boolean contains(MCRIPAddress other)
           
 void init(InetAddress address)
           
 void init(InetAddress address, InetAddress mask)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

address

byte[] address

mask

byte[] mask
Constructor Detail

MCRIPAddress

public MCRIPAddress(String ip)
             throws UnknownHostException
Throws:
UnknownHostException

MCRIPAddress

public MCRIPAddress(InetAddress address,
                    InetAddress mask)

MCRIPAddress

public MCRIPAddress(InetAddress address)
Method Detail

init

public void init(InetAddress address,
                 InetAddress mask)

init

public void init(InetAddress address)

contains

boolean contains(MCRIPAddress other)

toString

public String toString()
Overrides:
toString in class Object