net.spy.nmap
Class NmapEntry
java.lang.Object
net.spy.SpyObject
net.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. |
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.
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()