19 package org.sleuthkit.autopsy.modules.fileextmismatch;
21 import java.io.IOException;
22 import java.io.ObjectInputStream;
28 final class FileExtMismatchDetectorModuleSettings
implements IngestModuleIngestJobSettings {
30 private static final long serialVersionUID = 1L;
31 private long versionNumber;
32 private boolean skipFilesWithNoExtension;
33 private boolean skipFilesWithTextPlainMimeType;
34 private boolean skipKnownFiles;
36 FileExtMismatchDetectorModuleSettings() {
37 this.skipFilesWithNoExtension =
true;
38 this.skipFilesWithTextPlainMimeType =
true;
39 this.skipKnownFiles =
true;
42 FileExtMismatchDetectorModuleSettings(
boolean skipKnownFiles,
boolean skipFilesWithNoExtension,
boolean skipFilesWithTextPlainMimeType) {
43 this.skipFilesWithNoExtension = skipFilesWithNoExtension;
44 this.skipFilesWithTextPlainMimeType = skipFilesWithTextPlainMimeType;
45 this.skipKnownFiles = skipKnownFiles;
49 public long getVersionNumber() {
50 return serialVersionUID;
53 void setSkipFilesWithNoExtension(
boolean skipFilesWithNoExtension) {
54 this.skipFilesWithNoExtension = skipFilesWithNoExtension;
57 boolean skipFilesWithNoExtension() {
58 return skipFilesWithNoExtension;
61 void setSkipFilesWithTextPlainMimeType(
boolean skipFilesWithTextPlainMimeType) {
62 this.skipFilesWithTextPlainMimeType = skipFilesWithTextPlainMimeType;
65 boolean skipFilesWithTextPlainMimeType() {
66 return skipFilesWithTextPlainMimeType;
69 boolean skipKnownFiles() {
70 return skipKnownFiles;
73 void setSkipKnownFiles(
boolean skipKnownFiles) {
74 this.skipKnownFiles = skipKnownFiles;
77 private void readObject(ObjectInputStream in)
throws IOException, ClassNotFoundException {
78 in.defaultReadObject();
79 if (0L == versionNumber) {
85 skipKnownFiles =
true;