ca.swank.fastreversedns
Class IPEnumeration

java.lang.Object
  |
  +--ca.swank.fastreversedns.IPEnumeration
All Implemented Interfaces:
java.util.Enumeration

public class IPEnumeration
extends java.lang.Object
implements java.util.Enumeration

A range of IP addresses that can be enumerated in sequence


Constructor Summary
IPEnumeration(java.lang.String firstIp, java.lang.String lastIp)
          Creates a new IPEnumeration starting with the firstIP and ending with the lastIP (inclusive).
 
Method Summary
 boolean hasMoreElements()
          returns true if the current address is less than the last address
 java.lang.Object nextElement()
          returns the current address as a String or null and increments the address counter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IPEnumeration

public IPEnumeration(java.lang.String firstIp,
                     java.lang.String lastIp)
Creates a new IPEnumeration starting with the firstIP and ending with the lastIP (inclusive).

Method Detail

hasMoreElements

public boolean hasMoreElements()
returns true if the current address is less than the last address

Specified by:
hasMoreElements in interface java.util.Enumeration

nextElement

public java.lang.Object nextElement()
returns the current address as a String or null and increments the address counter

Specified by:
nextElement in interface java.util.Enumeration