net.spy.nmap
Class NmapEntry

java.lang.Object
  extended bynet.spy.SpyObject
      extended bynet.spy.nmap.NmapEntry

public class NmapEntry
extends SpyObject


Constructor Summary
NmapEntry(String inputLine)
          Construct an NmapEntry object from a line in an nmap machine readable output file.
 
Method Summary
 String getIP()
          gets the IP address for this entry.
 NmapPort port(int p)
          gets an NmapPort entry for a single port number
 Enumeration ports()
          gets an Enumeration of NmapPort entries from this entry
 String toString()
           
 
Methods inherited from class net.spy.SpyObject
getLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NmapEntry

public NmapEntry(String inputLine)
Construct an NmapEntry object from a line in an nmap machine readable output file.

Parameters:
inputLine - a single line from an nmap machine readable output file.
Method Detail

getIP

public String getIP()
gets the IP address for this entry.

Returns:
The string form of the IP address, or null if it couldn't figure one out.

ports

public Enumeration ports()
gets an Enumeration of NmapPort entries from this entry


port

public NmapPort port(int p)
gets an NmapPort entry for a single port number

Parameters:
p - port number to look up
Returns:
NmapPort entry describing this machine's binding to that port, or null if there is no such entry.

toString

public String toString()