Package ai.nightfall.scan.model
Class Proximity
java.lang.Object
ai.nightfall.scan.model.Proximity
An object representing a range of bytes to consider around a candidate finding.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGet the number of trailing bytes.intGet the number of leading bytes.
-
Constructor Details
-
Proximity
public Proximity(int windowBefore, int windowAfter) Construct a new Proximity.- Parameters:
windowBefore- The number of leading characters to consider as contextwindowAfter- The number of trailing characters to consider as context
-
-
Method Details
-
getWindowBefore
public int getWindowBefore()Get the number of leading bytes.- Returns:
- the number of bytes to consider leading up to a candidate finding
-
getWindowAfter
public int getWindowAfter()Get the number of trailing bytes.- Returns:
- the number of bytes to consider trailing a candidate finding
-