Skip to content

Commit

Permalink
'#1503: use a shorter property prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
lfcnassif committed May 27, 2024
1 parent 59f94d9 commit 96ab3fd
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public enum ReportType {
public static final MediaType USNJRNL_REPORT_CSV = MediaType.parse("application/x-usnjournal-report-csv");
public static final MediaType USNJRNL_REGISTRY = MediaType.parse("application/x-usnjournal-registry");

static final String USN_REASON_PREFIX = "ntfs_usn_reason";
static final String USN_REASON_PREFIX = "usnJrnl:";

private static Set<MediaType> SUPPORTED_TYPES = MediaType.set(USNJRNL_$J);

Expand Down Expand Up @@ -190,8 +190,9 @@ private void createReport(ArrayList<UsnJrnlEntry> entries, int n, ParseContext c
metadataItem.set(props[3], Long.toString(entry.getUSN()));
String formatedDate = rg.timeFormat.format(entry.getFileTime());
for (String value : entry.getReasons()) {
MetadataUtil.setMetadataType(USN_REASON_PREFIX + ":" + value, Date.class);
metadataItem.set(USN_REASON_PREFIX + ":" + value, formatedDate);
value = value.toLowerCase();
MetadataUtil.setMetadataType(USN_REASON_PREFIX + value, Date.class);
metadataItem.set(USN_REASON_PREFIX + value, formatedDate);
metadataItem.add(props[5], value);
}
metadataItem.set(props[6], "0x" + Util.byteArrayToHex(entry.getMftRef()));
Expand Down

0 comments on commit 96ab3fd

Please sign in to comment.