Autopsy  4.12.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
Public Member Functions | Static Private Member Functions | Static Private Attributes | List of all members
org.sleuthkit.autopsy.modules.interestingitems.FilesSet.Rule.ExtensionCondition Class Reference

Inherits org.sleuthkit.autopsy.modules.interestingitems.FilesSet.Rule.AbstractTextCondition, and org.sleuthkit.autopsy.modules.interestingitems.FilesSet.Rule.FileNameCondition.

Public Member Functions

 ExtensionCondition (String extension)
 
 ExtensionCondition (List< String > extensions)
 
 ExtensionCondition (Pattern extension)
 
String getTextToMatch ()
 
boolean isRegex ()
 
boolean passes (AbstractFile file)
 
boolean textMatches (String textToMatch)
 

Static Private Member Functions

static List< String > normalize (List< String > extensions)
 
static String normalize (String extension)
 

Static Private Attributes

static final long serialVersionUID = 1L
 

Detailed Description

A file name extension condition for an interesting files set membership rule. The immutability of a file name extension condition object allows it to be safely published to multiple threads.

Definition at line 823 of file FilesSet.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.modules.interestingitems.FilesSet.Rule.ExtensionCondition.ExtensionCondition ( String  extension)

Construct a case-insensitive file name extension condition.

Parameters
extensionThe file name extension to be matched.

Definition at line 832 of file FilesSet.java.

References org.sleuthkit.autopsy.modules.interestingitems.FilesSet.Rule.ExtensionCondition.normalize().

org.sleuthkit.autopsy.modules.interestingitems.FilesSet.Rule.ExtensionCondition.ExtensionCondition ( List< String >  extensions)

Construct a case-insensitive file name extension condition.

Parameters
extensionsThe file name extensions to be matched.

Definition at line 844 of file FilesSet.java.

References org.sleuthkit.autopsy.modules.interestingitems.FilesSet.Rule.ExtensionCondition.normalize().

org.sleuthkit.autopsy.modules.interestingitems.FilesSet.Rule.ExtensionCondition.ExtensionCondition ( Pattern  extension)

Construct a file name extension regular expression condition.

Parameters
extensionThe file name extension regular expression to be matched.

Definition at line 857 of file FilesSet.java.

Member Function Documentation

String org.sleuthkit.autopsy.modules.interestingitems.FilesSet.Rule.AbstractTextCondition.getTextToMatch ( )
inherited
boolean org.sleuthkit.autopsy.modules.interestingitems.FilesSet.Rule.AbstractTextCondition.isRegex ( )
inherited

Queries whether or not the text the condition matches is a regular expression.

Returns
True if the text to be matched is a regular expression, false otherwise.

Definition at line 679 of file FilesSet.java.

References org.sleuthkit.autopsy.modules.interestingitems.FilesSet.Rule.TextMatcher.isRegex().

static List<String> org.sleuthkit.autopsy.modules.interestingitems.FilesSet.Rule.ExtensionCondition.normalize ( List< String >  extensions)
staticprivate

Strip "." from the start of extensions in the provided list.

Parameters
extensionsThe list of extensions to be processed.
Returns
A post-processed list of extensions.

Definition at line 873 of file FilesSet.java.

Referenced by org.sleuthkit.autopsy.modules.interestingitems.FilesSet.Rule.ExtensionCondition.ExtensionCondition().

static String org.sleuthkit.autopsy.modules.interestingitems.FilesSet.Rule.ExtensionCondition.normalize ( String  extension)
staticprivate

Strip "." from the start of the provided extension.

Parameters
extensionThe extension to be processed.
Returns
A post-processed extension.

Definition at line 890 of file FilesSet.java.

boolean org.sleuthkit.autopsy.modules.interestingitems.FilesSet.Rule.ExtensionCondition.passes ( AbstractFile  file)
boolean org.sleuthkit.autopsy.modules.interestingitems.FilesSet.Rule.AbstractTextCondition.textMatches ( String  textToMatch)
inherited

Member Data Documentation

final long org.sleuthkit.autopsy.modules.interestingitems.FilesSet.Rule.ExtensionCondition.serialVersionUID = 1L
staticprivate

Definition at line 825 of file FilesSet.java.


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

Copyright © 2012-2018 Basis Technology. Generated on: Wed Sep 18 2019
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.