Autopsy
4.19.3
Graphical digital forensics platform for The Sleuth Kit and other tools.
|
Classes | |
class | DiffServiceException |
Private Member Functions | |
String | diffLines (List< String > orig, List< String > cur, String header) |
String | getChunkLineNumString (Chunk<?> chunk) |
String | getDiffLineNumString (Chunk<?> orig, Chunk<?> cur) |
String | getFileDiffs (File orig, File cur, String identifier) |
String | getHeaderWithDivider (String remark) |
List< String > | getLinesDiff (Chunk< String > orig, Chunk< String > cur) |
String | getLinesDiffString (AbstractDelta< String > delta) |
String | getRelative (File rootDirectory, File file) |
Static Private Attributes | |
static final String | CUR_LINE_PREFIX = "> " |
static final String[] | DIFF_BREAK = new String[]{"", "", ""} |
static final String[] | FILE_DIFF_BREAK = new String[]{"", "", "", ""} |
static final String | NEW_LINE = System.getProperty("line.separator") |
static final String | ORIG_LINE_PREFIX = "< " |
Handles creating diffs with files.
Definition at line 40 of file DiffService.java.
|
private |
Creates a line difference String with a header if non-null. Null is returned if there is no diff.
orig | The original lines. |
cur | The current lines. |
header | The header to be used if non-null diff. If header is null, no header included. |
Definition at line 195 of file DiffService.java.
References org.sleuthkit.autopsy.integrationtesting.DiffService.getLinesDiffString().
Referenced by org.sleuthkit.autopsy.integrationtesting.DiffService.getFileDiffs().
|
private |
Definition at line 141 of file DiffService.java.
Referenced by org.sleuthkit.autopsy.integrationtesting.DiffService.getDiffLineNumString().
|
private |
Gets a github-like line difference (i.e. -88,3 +90,3) of the form -orig_line_num,orig_lines, +new_line_num,new_lines.
orig | The previous chunk. |
cur | The current chunk. |
Definition at line 153 of file DiffService.java.
References org.sleuthkit.autopsy.integrationtesting.DiffService.getChunkLineNumString().
Referenced by org.sleuthkit.autopsy.integrationtesting.DiffService.getLinesDiffString().
|
private |
Handles creating a diff between files noting if one of them is not present. If both are not present or both are the same, null is returned.
orig | The original file. |
cur | The current file. |
identifier | The identifier for the header. |
Definition at line 122 of file DiffService.java.
References org.sleuthkit.autopsy.integrationtesting.DiffService.diffLines(), org.sleuthkit.autopsy.integrationtesting.DiffService.getHeaderWithDivider(), and org.sleuthkit.autopsy.integrationtesting.DiffService.NEW_LINE.
|
private |
Definition at line 212 of file DiffService.java.
Referenced by org.sleuthkit.autopsy.integrationtesting.DiffService.getFileDiffs().
|
private |
Creates a line by line difference similar to integration tests like: < original
new
orig | The original chunk. |
cur | The new chunk. |
Definition at line 166 of file DiffService.java.
Referenced by org.sleuthkit.autopsy.integrationtesting.DiffService.getLinesDiffString().
|
private |
Definition at line 177 of file DiffService.java.
References org.sleuthkit.autopsy.integrationtesting.DiffService.getDiffLineNumString(), and org.sleuthkit.autopsy.integrationtesting.DiffService.getLinesDiff().
Referenced by org.sleuthkit.autopsy.integrationtesting.DiffService.diffLines().
|
private |
Definition at line 217 of file DiffService.java.
|
staticprivate |
Definition at line 70 of file DiffService.java.
|
staticprivate |
Definition at line 71 of file DiffService.java.
|
staticprivate |
Definition at line 72 of file DiffService.java.
|
staticprivate |
Definition at line 73 of file DiffService.java.
Referenced by org.sleuthkit.autopsy.integrationtesting.DiffService.getFileDiffs().
|
staticprivate |
Definition at line 69 of file DiffService.java.
Copyright © 2012-2022 Basis Technology. Generated on: Sun Apr 2 2023
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.