|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.ntnu.item.jt.system.ScanResult
public class ScanResult
Contains a generic representation of a virus scan result. Is valid for one scan on one AVE.
Constructor Summary | |
---|---|
ScanResult(Scanner scanner)
|
Method Summary | |
---|---|
ArrayList<String> |
getResults()
Get the filtered scan results for the scan. |
Scanner |
getScanner()
Get the scanner used to perform this scan operation. |
long |
getScanTime()
Get the total time elapsed performing the scan. |
String |
resultSummary()
Generates a summarized scan result on a relatively eye-pleasing format. |
void |
setResult(String result)
Set a single results. |
protected void |
setResults(ArrayList<String> results)
Set results for this scan. |
protected void |
setScanTime(long scanTime)
Set the scan time for this operation. |
String |
toString()
Returns a thorough representation of the scan result. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ScanResult(Scanner scanner)
Method Detail |
---|
public String toString()
toString
in class Object
public String resultSummary()
public ArrayList<String> getResults()
protected void setResults(ArrayList<String> results)
results
- list of matches returned from the scan.public long getScanTime()
public void setResult(String result)
result
- protected void setScanTime(long scanTime)
scanTime
- time (in milliseconds) to perform scan.public Scanner getScanner()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |