Package ai.nightfall.scan.model
Class Location
java.lang.Object
ai.nightfall.scan.model.Location
An object representing where a finding was discovered in content.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn object that contains references to the start and end of the eponymous range. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the finding's byte range.Get the finding's codepoint range.toString()
-
Constructor Details
-
Location
public Location()
-
-
Method Details
-
getByteRange
Get the finding's byte range.- Returns:
- the byte range in which a finding was detected
-
getCodepointRange
Get the finding's codepoint range.- Returns:
- the codepoint range in which a finding was detected. This differs from byte range since a codepoint may contain multiple bytes.
-
toString
-