Autopsy  4.19.3
Graphical digital forensics platform for The Sleuth Kit and other tools.
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Private Attributes | List of all members
org.sleuthkit.autopsy.discovery.search.SearchData.FileSize Enum Reference

Public Member Functions

 FileSize (int ranking, long minB, long maxB, String displayName, String displaySize)
 
long getMaxBytes ()
 
long getMinBytes ()
 
int getRanking ()
 
String getSizeGroup ()
 
String toString ()
 

Static Public Member Functions

static FileSize fromImageSize (long size)
 
static FileSize fromVideoSize (long size)
 
static List< FileSizegetDefaultSizeOptions ()
 
static List< FileSizegetOptionsForVideos ()
 

Public Attributes

 LARGE_IMAGE =(8, 1 * BYTES_PER_MB, 50 * BYTES_PER_MB, Bundle.SearchData_FileSize_LARGE_displayName(), Bundle.SearchData_FileSize_1mbto50mb())
 
 LARGE_VIDEO =(2, 1000 * BYTES_PER_MB, 5000 * BYTES_PER_MB, Bundle.SearchData_FileSize_LARGE_displayName(), Bundle.SearchData_FileSize_1gbto5gb())
 
 MEDIUM_IMAGE =(9, 100000, 1 * BYTES_PER_MB, Bundle.SearchData_FileSize_MEDIUM_displayName(), Bundle.SearchData_FileSize_100kbto1mb())
 
 MEDIUM_VIDEO =(3, 100 * BYTES_PER_MB, 1000 * BYTES_PER_MB, Bundle.SearchData_FileSize_MEDIUM_displayName(), Bundle.SearchData_FileSize_100mbto1gb())
 
 SMALL_IMAGE =(10, 16000, 100000, Bundle.SearchData_FileSize_SMALL_displayName(), Bundle.SearchData_FileSize_16kbto100kb())
 
 SMALL_VIDEO =(4, 500000, 100 * BYTES_PER_MB, Bundle.SearchData_FileSize_SMALL_displayName(), Bundle.SearchData_FileSize_500kbto100mb())
 
 XLARGE_IMAGE =(7, 50 * BYTES_PER_MB, 200 * BYTES_PER_MB, Bundle.SearchData_FileSize_XLARGE_displayName(), Bundle.SearchData_FileSize_50mbto200mb())
 
 XLARGE_VIDEO =(1, 5000 * BYTES_PER_MB, 10000 * BYTES_PER_MB, Bundle.SearchData_FileSize_XLARGE_displayName(), Bundle.SearchData_FileSize_5gbto10gb())
 
 XSMALL_IMAGE =(11, 0, 16000, Bundle.SearchData_FileSize_XSMALL_displayName(), Bundle.SearchData_FileSize_upTo16kb())
 
 XSMALL_VIDEO =(5, 0, 500000, Bundle.SearchData_FileSize_XSMALL_displayName(), Bundle.SearchData_FileSize_upTo500kb())
 
 XXLARGE_IMAGE =(6, 200 * BYTES_PER_MB, -1, Bundle.SearchData_FileSize_XXLARGE_displayName(), Bundle.SearchData_FileSize_200PlusMb())
 
 XXLARGE_VIDEO =(0, 10000 * BYTES_PER_MB, -1, Bundle.SearchData_FileSize_XXLARGE_displayName(), Bundle.SearchData_FileSize_10PlusGb())
 

Static Public Attributes

staticfinal long NO_MAXIMUM = -1
 

Private Attributes

final String displaySize
 
final long maxBytes
 
final long minBytes
 
final int ranking
 
final String sizeGroup
 

Detailed Description

Enum representing the file size.

Definition at line 251 of file SearchData.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.discovery.search.SearchData.FileSize.FileSize ( int  ranking,
long  minB,
long  maxB,
String  displayName,
String  displaySize 
)

Construct a new FileSize enum value.

Parameters
rankingThe rank for sorting.
minBThe minimum size included in this enum value.
maxBThe maximum size included in this enum value.
displayNameThe display name for this enum value.
displaySizeThe size to display in association with this enum value.

Definition at line 282 of file SearchData.java.

Member Function Documentation

static FileSize org.sleuthkit.autopsy.discovery.search.SearchData.FileSize.fromImageSize ( long  size)
static

Get the enum corresponding to the given file size for image files. The file size must be strictly greater than minBytes.

Parameters
sizeThe file size.
Returns
The enum whose range contains the file size.

Definition at line 302 of file SearchData.java.

static FileSize org.sleuthkit.autopsy.discovery.search.SearchData.FileSize.fromVideoSize ( long  size)
static

Get the enum corresponding to the given file size for video files. The file size must be strictly greater than minBytes.

Parameters
sizeThe file size.
Returns
The enum whose range contains the file size.

Definition at line 326 of file SearchData.java.

static List<FileSize> org.sleuthkit.autopsy.discovery.search.SearchData.FileSize.getDefaultSizeOptions ( )
static

Get the list of enums that are valid for most file sizes.

Returns
Enums that can be used to filter most file including images by size.

Definition at line 389 of file SearchData.java.

long org.sleuthkit.autopsy.discovery.search.SearchData.FileSize.getMaxBytes ( )

Get the upper limit of the range.

Returns
The maximum file size that will fit in this range.

Definition at line 347 of file SearchData.java.

long org.sleuthkit.autopsy.discovery.search.SearchData.FileSize.getMinBytes ( )

Get the lower limit of the range.

Returns
The maximum file size that is not part of this range.

Definition at line 356 of file SearchData.java.

static List<FileSize> org.sleuthkit.autopsy.discovery.search.SearchData.FileSize.getOptionsForVideos ( )
static

Get the list of enums that are valid for video sizes.

Returns
enums that can be used to filter videos by size.

Definition at line 398 of file SearchData.java.

int org.sleuthkit.autopsy.discovery.search.SearchData.FileSize.getRanking ( )

Get the rank for sorting.

Returns
The rank (lower should be displayed first).

Definition at line 365 of file SearchData.java.

String org.sleuthkit.autopsy.discovery.search.SearchData.FileSize.getSizeGroup ( )

Get the name of the size group. For example Small.

Returns
The name of the size group. For example Small.

Definition at line 379 of file SearchData.java.

String org.sleuthkit.autopsy.discovery.search.SearchData.FileSize.toString ( )

Definition at line 370 of file SearchData.java.

Member Data Documentation

final String org.sleuthkit.autopsy.discovery.search.SearchData.FileSize.displaySize
private

Definition at line 269 of file SearchData.java.

org.sleuthkit.autopsy.discovery.search.SearchData.FileSize.LARGE_IMAGE =(8, 1 * BYTES_PER_MB, 50 * BYTES_PER_MB, Bundle.SearchData_FileSize_LARGE_displayName(), Bundle.SearchData_FileSize_1mbto50mb())

Definition at line 260 of file SearchData.java.

org.sleuthkit.autopsy.discovery.search.SearchData.FileSize.LARGE_VIDEO =(2, 1000 * BYTES_PER_MB, 5000 * BYTES_PER_MB, Bundle.SearchData_FileSize_LARGE_displayName(), Bundle.SearchData_FileSize_1gbto5gb())

Definition at line 254 of file SearchData.java.

final long org.sleuthkit.autopsy.discovery.search.SearchData.FileSize.maxBytes
private

Definition at line 267 of file SearchData.java.

org.sleuthkit.autopsy.discovery.search.SearchData.FileSize.MEDIUM_IMAGE =(9, 100000, 1 * BYTES_PER_MB, Bundle.SearchData_FileSize_MEDIUM_displayName(), Bundle.SearchData_FileSize_100kbto1mb())

Definition at line 261 of file SearchData.java.

org.sleuthkit.autopsy.discovery.search.SearchData.FileSize.MEDIUM_VIDEO =(3, 100 * BYTES_PER_MB, 1000 * BYTES_PER_MB, Bundle.SearchData_FileSize_MEDIUM_displayName(), Bundle.SearchData_FileSize_100mbto1gb())

Definition at line 255 of file SearchData.java.

final long org.sleuthkit.autopsy.discovery.search.SearchData.FileSize.minBytes
private

Definition at line 266 of file SearchData.java.

static final long org.sleuthkit.autopsy.discovery.search.SearchData.FileSize.NO_MAXIMUM = -1
static
final int org.sleuthkit.autopsy.discovery.search.SearchData.FileSize.ranking
private

Definition at line 265 of file SearchData.java.

final String org.sleuthkit.autopsy.discovery.search.SearchData.FileSize.sizeGroup
private

Definition at line 268 of file SearchData.java.

org.sleuthkit.autopsy.discovery.search.SearchData.FileSize.SMALL_IMAGE =(10, 16000, 100000, Bundle.SearchData_FileSize_SMALL_displayName(), Bundle.SearchData_FileSize_16kbto100kb())

Definition at line 262 of file SearchData.java.

org.sleuthkit.autopsy.discovery.search.SearchData.FileSize.SMALL_VIDEO =(4, 500000, 100 * BYTES_PER_MB, Bundle.SearchData_FileSize_SMALL_displayName(), Bundle.SearchData_FileSize_500kbto100mb())

Definition at line 256 of file SearchData.java.

org.sleuthkit.autopsy.discovery.search.SearchData.FileSize.XLARGE_IMAGE =(7, 50 * BYTES_PER_MB, 200 * BYTES_PER_MB, Bundle.SearchData_FileSize_XLARGE_displayName(), Bundle.SearchData_FileSize_50mbto200mb())

Definition at line 259 of file SearchData.java.

org.sleuthkit.autopsy.discovery.search.SearchData.FileSize.XLARGE_VIDEO =(1, 5000 * BYTES_PER_MB, 10000 * BYTES_PER_MB, Bundle.SearchData_FileSize_XLARGE_displayName(), Bundle.SearchData_FileSize_5gbto10gb())

Definition at line 253 of file SearchData.java.

org.sleuthkit.autopsy.discovery.search.SearchData.FileSize.XSMALL_IMAGE =(11, 0, 16000, Bundle.SearchData_FileSize_XSMALL_displayName(), Bundle.SearchData_FileSize_upTo16kb())

Definition at line 263 of file SearchData.java.

org.sleuthkit.autopsy.discovery.search.SearchData.FileSize.XSMALL_VIDEO =(5, 0, 500000, Bundle.SearchData_FileSize_XSMALL_displayName(), Bundle.SearchData_FileSize_upTo500kb())

Definition at line 257 of file SearchData.java.

org.sleuthkit.autopsy.discovery.search.SearchData.FileSize.XXLARGE_IMAGE =(6, 200 * BYTES_PER_MB, -1, Bundle.SearchData_FileSize_XXLARGE_displayName(), Bundle.SearchData_FileSize_200PlusMb())

Definition at line 258 of file SearchData.java.

org.sleuthkit.autopsy.discovery.search.SearchData.FileSize.XXLARGE_VIDEO =(0, 10000 * BYTES_PER_MB, -1, Bundle.SearchData_FileSize_XXLARGE_displayName(), Bundle.SearchData_FileSize_10PlusGb())

Definition at line 252 of file SearchData.java.


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

Copyright © 2012-2022 Basis Technology. Generated on: Thu Sep 29 2022
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.