|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jolsrv2.data.AddressBlock
public class AddressBlock
An address is specified as a sequence of octets of the form head:mid: tail. An address block is an ordered set of addresses sharing the same head and tail, and having individual mids. [address block] is defined by: [address-block] = [num-addr] [head-octet] [head]? [tail-octet]? [tail]? [mid]* The class implements the address block.
Constructor Summary | |
---|---|
AddressBlock()
Constructor |
Method Summary | |
---|---|
void |
add(java.net.InetAddress address)
The method adds an IP address to the address block |
void |
calculate()
Calculates the head and tails of multiple addresses |
java.util.ArrayList<java.net.InetAddress> |
getAddresses()
Returns the IP addresses |
byte[] |
getBytes()
Returns the bytes of the address block |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AddressBlock()
Method Detail |
---|
public void add(java.net.InetAddress address)
address
- public void calculate()
public java.util.ArrayList<java.net.InetAddress> getAddresses()
public byte[] getBytes()
Message
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |