Package org.nmap4j.core.nmap
Class NMapExecutor
java.lang.Object
org.nmap4j.core.nmap.NMapExecutor
A simple class that encapsulates executing NMap.
This class executes nmap synchronously.
-
Constructor Summary
ConstructorDescriptionNMapExecutor
(ArgumentProperties argProps, NMapProperties nmapProps) Constructs an instance based on the ArgumentProperties and the NMapProperties passed in. -
Method Summary
-
Constructor Details
-
NMapExecutor
public NMapExecutor(ArgumentProperties argProps, NMapProperties nmapProps) throws NMapInitializationException Constructs an instance based on the ArgumentProperties and the NMapProperties passed in. These become the basis for the subsequent execution of NMap.- Parameters:
argProps
-nmapProps
-- Throws:
NMapInitializationException
-
-
Method Details
-
execute
This method attempts to execute NMap using the properties supplied when this object was constructed.This method can throw an NMapExecutionException which will be a wrapper around an IO Exception.
- Returns:
- Throws:
NMapExecutionException
-
toString
-