Autopsy  3.1
Graphical digital forensics platform for The Sleuth Kit and other tools.
Static Private Member Functions | List of all members
org.sleuthkit.autopsy.modules.filetypeid.UserDefinedFileTypesManager.XmlReader Class Reference

Static Private Member Functions

static List< FileType > readFileTypes (String filePath) throws IOException, ParserConfigurationException, SAXException
 
static FileType parseFileType (Element fileTypeElem) throws IllegalArgumentException, NumberFormatException
 
static String parseMimeType (Element fileTypeElem)
 
static Signature parseSignature (Element fileTypeElem) throws IllegalArgumentException, NumberFormatException
 
static String parseInterestingFilesSet (Element fileTypeElem)
 
static boolean parseAlert (Element fileTypeElem)
 
static String getChildElementTextContent (Element elem, String tagName)
 

Detailed Description

Provides a mechanism for reading a set of file type definitions from an XML file.

Definition at line 371 of file UserDefinedFileTypesManager.java.

Member Function Documentation

static String org.sleuthkit.autopsy.modules.filetypeid.UserDefinedFileTypesManager.XmlReader.getChildElementTextContent ( Element  elem,
String  tagName 
)
staticprivate

Gets the text content of a single child element.

Parameters
elemThe parent element.
tagNameThe tag name of the child element.
Returns
The text content.

Definition at line 478 of file UserDefinedFileTypesManager.java.

Referenced by org.sleuthkit.autopsy.modules.filetypeid.UserDefinedFileTypesManager.XmlReader.parseMimeType(), and org.sleuthkit.autopsy.modules.filetypeid.UserDefinedFileTypesManager.XmlReader.parseSignature().

static boolean org.sleuthkit.autopsy.modules.filetypeid.UserDefinedFileTypesManager.XmlReader.parseAlert ( Element  fileTypeElem)
staticprivate

Gets the alert attribute from a file type XML element.

Parameters
fileTypeElemThe XML element.
Returns
True or false;

Definition at line 466 of file UserDefinedFileTypesManager.java.

Referenced by org.sleuthkit.autopsy.modules.filetypeid.UserDefinedFileTypesManager.XmlReader.parseFileType().

static FileType org.sleuthkit.autopsy.modules.filetypeid.UserDefinedFileTypesManager.XmlReader.parseFileType ( Element  fileTypeElem) throws IllegalArgumentException, NumberFormatException
staticprivate
static String org.sleuthkit.autopsy.modules.filetypeid.UserDefinedFileTypesManager.XmlReader.parseInterestingFilesSet ( Element  fileTypeElem)
staticprivate

Gets the interesting files set name from a file type XML element.

Parameters
fileTypeElemThe XML element.
Returns
The files set name, possibly empty.

Definition at line 450 of file UserDefinedFileTypesManager.java.

Referenced by org.sleuthkit.autopsy.modules.filetypeid.UserDefinedFileTypesManager.XmlReader.parseFileType().

static String org.sleuthkit.autopsy.modules.filetypeid.UserDefinedFileTypesManager.XmlReader.parseMimeType ( Element  fileTypeElem)
staticprivate

Gets the MIME type from a file type XML element.

Parameters
fileTypeElemThe element
Returns
A MIME type string.

Definition at line 418 of file UserDefinedFileTypesManager.java.

References org.sleuthkit.autopsy.modules.filetypeid.UserDefinedFileTypesManager.XmlReader.getChildElementTextContent().

Referenced by org.sleuthkit.autopsy.modules.filetypeid.UserDefinedFileTypesManager.XmlReader.parseFileType().

static Signature org.sleuthkit.autopsy.modules.filetypeid.UserDefinedFileTypesManager.XmlReader.parseSignature ( Element  fileTypeElem) throws IllegalArgumentException, NumberFormatException
staticprivate

Gets the signature from a file type XML element.

Parameters
fileTypeElemThe XML element.
Returns
The signature.

Definition at line 428 of file UserDefinedFileTypesManager.java.

References org.sleuthkit.autopsy.modules.filetypeid.UserDefinedFileTypesManager.XmlReader.getChildElementTextContent().

Referenced by org.sleuthkit.autopsy.modules.filetypeid.UserDefinedFileTypesManager.XmlReader.parseFileType().

static List<FileType> org.sleuthkit.autopsy.modules.filetypeid.UserDefinedFileTypesManager.XmlReader.readFileTypes ( String  filePath) throws IOException, ParserConfigurationException, SAXException
staticprivate

Reads a set of file type definitions from an XML file.

Parameters
filePathThe path to the XML file.
Returns
A collection of file types read from the XML file.

Definition at line 379 of file UserDefinedFileTypesManager.java.

References org.sleuthkit.autopsy.coreutils.XMLUtil.loadDocument(), and org.sleuthkit.autopsy.modules.filetypeid.UserDefinedFileTypesManager.XmlReader.parseFileType().


The documentation for this class was generated from the following file:

Copyright © 2012-2015 Basis Technology. Generated on: Mon Oct 19 2015
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.