mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-19 11:07:43 +00:00
Moved towards serialization
This commit is contained in:
parent
afb27f1734
commit
b20a3ca40c
@ -54,6 +54,8 @@ class FileExtMismatchXML {
|
|||||||
private static final String SIG_MIMETYPE_ATTR = "mimetype"; //NON-NLS
|
private static final String SIG_MIMETYPE_ATTR = "mimetype"; //NON-NLS
|
||||||
|
|
||||||
private static final String DEFAULT_CONFIG_FILE_NAME = "mismatch_config.xml"; //NON-NLS
|
private static final String DEFAULT_CONFIG_FILE_NAME = "mismatch_config.xml"; //NON-NLS
|
||||||
|
private static final String DEFAULT_SERIALIZED_FILE_NAME = "mismatch_config.settings";
|
||||||
|
private static final String DEFAULT_SERIALIZED_FILE_PATH = PlatformUtil.getUserConfigDirectory() + File.separator + DEFAULT_SERIALIZED_FILE_NAME;
|
||||||
|
|
||||||
protected String filePath;
|
protected String filePath;
|
||||||
|
|
||||||
@ -86,6 +88,10 @@ class FileExtMismatchXML {
|
|||||||
*/
|
*/
|
||||||
public HashMap<String, String[]> load() {
|
public HashMap<String, String[]> load() {
|
||||||
HashMap<String, String[]> sigTypeToExtMap = new HashMap<>();
|
HashMap<String, String[]> sigTypeToExtMap = new HashMap<>();
|
||||||
|
File serializedFile = new File(DEFAULT_SERIALIZED_FILE_PATH);
|
||||||
|
if (serializedFile.exists()) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
final Document doc = XMLUtil.loadDoc(FileExtMismatchXML.class, filePath);
|
final Document doc = XMLUtil.loadDoc(FileExtMismatchXML.class, filePath);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user