Autopsy  4.19.3
Graphical digital forensics platform for The Sleuth Kit and other tools.
Public Member Functions | Private Member Functions | Private Attributes | List of all members
org.sleuthkit.autopsy.datasourcesummary.datamodel.MimeTypeSummary Class Reference

Public Member Functions

 MimeTypeSummary ()
 
 MimeTypeSummary (SleuthkitCaseProvider provider)
 
Long getCountOfAllRegularFiles (DataSource dataSource) throws SleuthkitCaseProvider.SleuthkitCaseProviderException, TskCoreException, SQLException
 
Long getCountOfFilesForMimeTypes (DataSource currentDataSource, Set< String > setOfMimeTypes) throws SleuthkitCaseProvider.SleuthkitCaseProviderException, TskCoreException, SQLException
 
Long getCountOfFilesNotInMimeTypes (DataSource currentDataSource, Set< String > setOfMimeTypes) throws SleuthkitCaseProvider.SleuthkitCaseProviderException, TskCoreException, SQLException
 
Long getCountOfFilesWithNoMimeType (DataSource currentDataSource) throws SleuthkitCaseProvider.SleuthkitCaseProviderException, TskCoreException, SQLException
 

Private Member Functions

String getSqlSet (Set< String > setValues)
 

Private Attributes

final SleuthkitCaseProvider provider
 

Detailed Description

Class to export summary information used by TypesPanel tab on the known files present in the specified DataSource.

Definition at line 33 of file MimeTypeSummary.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.datasourcesummary.datamodel.MimeTypeSummary.MimeTypeSummary ( )
org.sleuthkit.autopsy.datasourcesummary.datamodel.MimeTypeSummary.MimeTypeSummary ( SleuthkitCaseProvider  provider)

Main constructor.

Parameters
providerThe means of obtaining a sleuthkit case.

Definition at line 49 of file MimeTypeSummary.java.

References org.sleuthkit.autopsy.datasourcesummary.datamodel.MimeTypeSummary.provider.

Member Function Documentation

Long org.sleuthkit.autopsy.datasourcesummary.datamodel.MimeTypeSummary.getCountOfAllRegularFiles ( DataSource  dataSource) throws SleuthkitCaseProvider.SleuthkitCaseProviderException, TskCoreException, SQLException

Get a count of all regular files in a datasource.

Parameters
dataSourceThe datasource.
Returns
The count of regular files.
Exceptions
SleuthkitCaseProviderException
TskCoreException
SQLException

Definition at line 110 of file MimeTypeSummary.java.

References org.sleuthkit.autopsy.datasourcesummary.datamodel.SleuthkitCaseProvider.get(), and org.sleuthkit.autopsy.datasourcesummary.datamodel.DataSourceInfoUtilities.getCountOfRegNonSlackFiles().

Referenced by org.sleuthkit.autopsy.datasourcesummary.ui.MimeTypeSummaryGetter.getCountOfAllRegularFiles().

Long org.sleuthkit.autopsy.datasourcesummary.datamodel.MimeTypeSummary.getCountOfFilesForMimeTypes ( DataSource  currentDataSource,
Set< String >  setOfMimeTypes 
) throws SleuthkitCaseProvider.SleuthkitCaseProviderException, TskCoreException, SQLException

Get the number of files in the case database for the current data source which have the specified mimetypes.

Parameters
currentDataSourcethe data source which we are finding a file count
setOfMimeTypesthe set of mime types which we are finding the number of occurences of
Returns
a Long value which represents the number of occurrences of the specified mime types in the current case for the specified data source, null if no count was retrieved
Exceptions
SleuthkitCaseProviderException
TskCoreException
SQLException

Definition at line 71 of file MimeTypeSummary.java.

References org.sleuthkit.autopsy.datasourcesummary.datamodel.SleuthkitCaseProvider.get(), org.sleuthkit.autopsy.datasourcesummary.datamodel.DataSourceInfoUtilities.getCountOfRegNonSlackFiles(), and org.sleuthkit.autopsy.datasourcesummary.datamodel.MimeTypeSummary.getSqlSet().

Referenced by org.sleuthkit.autopsy.datasourcesummary.ui.MimeTypeSummaryGetter.getCountOfFilesForMimeTypes().

Long org.sleuthkit.autopsy.datasourcesummary.datamodel.MimeTypeSummary.getCountOfFilesNotInMimeTypes ( DataSource  currentDataSource,
Set< String >  setOfMimeTypes 
) throws SleuthkitCaseProvider.SleuthkitCaseProviderException, TskCoreException, SQLException

Get the number of files in the case database for the current data source which do not have the specified mimetypes.

Parameters
currentDataSourcethe data source which we are finding a file count
setOfMimeTypesthe set of mime types that should be excluded.
Returns
a Long value which represents the number of files that do not have the specific mime type, but do have a mime type.
Exceptions
SleuthkitCaseProviderException
TskCoreException
SQLException

Definition at line 92 of file MimeTypeSummary.java.

References org.sleuthkit.autopsy.datasourcesummary.datamodel.SleuthkitCaseProvider.get(), org.sleuthkit.autopsy.datasourcesummary.datamodel.DataSourceInfoUtilities.getCountOfRegNonSlackFiles(), and org.sleuthkit.autopsy.datasourcesummary.datamodel.MimeTypeSummary.getSqlSet().

Referenced by org.sleuthkit.autopsy.datasourcesummary.ui.MimeTypeSummaryGetter.getCountOfFilesNotInMimeTypes().

Long org.sleuthkit.autopsy.datasourcesummary.datamodel.MimeTypeSummary.getCountOfFilesWithNoMimeType ( DataSource  currentDataSource) throws SleuthkitCaseProvider.SleuthkitCaseProviderException, TskCoreException, SQLException

Gets the number of files in the data source with no assigned mime type.

Parameters
currentDataSourceThe data source.
Returns
The number of files with no mime type or null if there is an issue searching the data source.
Exceptions
SleuthkitCaseProviderException
TskCoreException
SQLException

Definition at line 127 of file MimeTypeSummary.java.

References org.sleuthkit.autopsy.datasourcesummary.datamodel.SleuthkitCaseProvider.get(), and org.sleuthkit.autopsy.datasourcesummary.datamodel.DataSourceInfoUtilities.getCountOfRegNonSlackFiles().

Referenced by org.sleuthkit.autopsy.datasourcesummary.ui.MimeTypeSummaryGetter.getCountOfFilesWithNoMimeType().

String org.sleuthkit.autopsy.datasourcesummary.datamodel.MimeTypeSummary.getSqlSet ( Set< String >  setValues)
private

Derives a sql set string (i.e. "('val1', 'val2', 'val3')"). A naive attempt is made to sanitize the strings by removing single quotes from values.

Parameters
setValuesThe values that should be present in the set. Single quotes are removed.
Returns
The sql set string.

Definition at line 142 of file MimeTypeSummary.java.

Referenced by org.sleuthkit.autopsy.datasourcesummary.datamodel.MimeTypeSummary.getCountOfFilesForMimeTypes(), and org.sleuthkit.autopsy.datasourcesummary.datamodel.MimeTypeSummary.getCountOfFilesNotInMimeTypes().

Member Data Documentation

final SleuthkitCaseProvider org.sleuthkit.autopsy.datasourcesummary.datamodel.MimeTypeSummary.provider
private

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

Copyright © 2012-2022 Basis Technology. Generated on: Tue Jun 27 2023
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.