From c6a7ac050c3c9860985fb54a26c63ad9fb503fcd Mon Sep 17 00:00:00 2001 From: Oliver Spohngellert Date: Fri, 4 Mar 2016 09:14:56 -0500 Subject: [PATCH] Updated documentation, exceptions thrown. --- .../filetypeid/UserDefinedFileTypesManager.java | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Core/src/org/sleuthkit/autopsy/modules/filetypeid/UserDefinedFileTypesManager.java b/Core/src/org/sleuthkit/autopsy/modules/filetypeid/UserDefinedFileTypesManager.java index 6f1a4c322c..15beafa567 100644 --- a/Core/src/org/sleuthkit/autopsy/modules/filetypeid/UserDefinedFileTypesManager.java +++ b/Core/src/org/sleuthkit/autopsy/modules/filetypeid/UserDefinedFileTypesManager.java @@ -369,7 +369,7 @@ final class UserDefinedFileTypesManager { * * @return A collection of file types read from the XML file. */ - private static List readFileTypes(String filePath) throws IOException, ParserConfigurationException, SAXException { + private static List readFileTypes(String filePath) throws IOException, SAXException { List fileTypes = new ArrayList<>(); /* * RC: Commenting out the loadDocument overload that validates @@ -395,8 +395,15 @@ final class UserDefinedFileTypesManager { } return fileTypes; } - - private static List readFileTypesSerialized(String filePath) throws IOException, ParserConfigurationException, SAXException { + + /** + * Reads the file types + * + * @param filePath the file path where the file types are to be read + * @return the file types + * @throws ParserConfigurationException If the file cannot be read + */ + private static List readFileTypesSerialized(String filePath) throws ParserConfigurationException { List fileTypes = new ArrayList<>(); File serializedDefs = new File(getFileTypeDefinitionsFilePath(USER_DEFINED_TYPE_SERIALIZATION_FILE)); if (serializedDefs.exists()) {