Autopsy  4.19.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
Classes | Private Member Functions | Static Private Attributes | List of all members
org.sleuthkit.autopsy.coreutils.FileTypeUtils Class Reference

Classes

enum  FileTypeCategory
 

Private Member Functions

 FileTypeUtils ()
 

Static Private Attributes

static final ImmutableSet< String > AUDIO_MIME_TYPES
 
static final ImmutableSet< String > DOCUMENT_MIME_TYPES
 
static final ImmutableSet< String > EXECUTABLE_MIME_TYPES
 
static final ImmutableSet< String > IMAGE_MIME_TYPES
 
static final ImmutableSet< String > MULTI_MEDIA_MIME_TYPES
 
static final ImmutableSet< String > VIDEO_MIME_TYPES
 
static final ImmutableSet< String > VISUAL_MEDIA_MIME_TYPES
 

Detailed Description

Utilities for dealing with file/mime-types

Definition at line 34 of file FileTypeUtils.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.coreutils.FileTypeUtils.FileTypeUtils ( )
private

Definition at line 146 of file FileTypeUtils.java.

Member Data Documentation

final ImmutableSet<String> org.sleuthkit.autopsy.coreutils.FileTypeUtils.AUDIO_MIME_TYPES
staticprivate
Initial value:
= new ImmutableSet.Builder<String>()
.add("audio/midi",
"audio/mpeg",
"audio/webm",
"audio/ogg",
"audio/wav",
"audio/vnd.wave",
"audio/x-ms-wma"
).build()

Definition at line 65 of file FileTypeUtils.java.

final ImmutableSet<String> org.sleuthkit.autopsy.coreutils.FileTypeUtils.DOCUMENT_MIME_TYPES
staticprivate
Initial value:
= new ImmutableSet.Builder<String>()
.add("text/plain",
"text/css",
"text/html",
"text/csv",
"text/xml",
"text/x-log",
"application/rtf",
"application/pdf",
"application/json",
"application/javascript",
"application/xml",
"application/xhtml+xml",
"application/x-msoffice",
"application/x-ooxml",
"application/msword",
"application/msword2",
"application/vnd.wordperfect",
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"application/vnd.ms-powerpoint",
"application/vnd.openxmlformats-officedocument.presentationml.presentation",
"application/vnd.ms-excel",
"application/vnd.ms-excel.sheet.4",
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
"application/vnd.oasis.opendocument.presentation",
"application/vnd.oasis.opendocument.spreadsheet",
"application/vnd.oasis.opendocument.text"
).build()

Definition at line 89 of file FileTypeUtils.java.

final ImmutableSet<String> org.sleuthkit.autopsy.coreutils.FileTypeUtils.EXECUTABLE_MIME_TYPES
staticprivate
Initial value:
= new ImmutableSet.Builder<String>()
.add("application/x-bat",
"application/x-dosexec",
"application/vnd.microsoft.portable-executable",
"application/x-msdownload",
"application/exe",
"application/x-exe",
"application/dos-exe",
"vms/exe",
"application/x-winexe",
"application/msdos-windows",
"application/x-msdos-program"
).build()

Definition at line 118 of file FileTypeUtils.java.

final ImmutableSet<String> org.sleuthkit.autopsy.coreutils.FileTypeUtils.IMAGE_MIME_TYPES
staticprivate
Initial value:
= new ImmutableSet.Builder<String>()
.addAll(removeAll(
asList(
Arrays.stream(ImageIO.getReaderMIMETypes())
.filter((mimeType) -> StringUtils.isNotBlank(mimeType))
.toArray(String[]::new)),
asList("application/octet-stream")))
.add("image/bmp",
"image/gif",
"image/jpeg",
"image/png",
"image/tiff",
"image/vnd.adobe.photoshop",
"image/x-raw-nikon",
"image/x-ms-bmp",
"image/x-icon",
"image/webp",
"image/vnd.microsoft.icon",
"image/x-rgb",
"image/x-ms-bmp",
"image/x-xbitmap",
"image/x-portable-graymap",
"image/x-portable-bitmap"
).build()

Definition at line 37 of file FileTypeUtils.java.

final ImmutableSet<String> org.sleuthkit.autopsy.coreutils.FileTypeUtils.MULTI_MEDIA_MIME_TYPES
staticprivate
Initial value:
= new ImmutableSet.Builder<String>()
.build()

Definition at line 132 of file FileTypeUtils.java.

final ImmutableSet<String> org.sleuthkit.autopsy.coreutils.FileTypeUtils.VIDEO_MIME_TYPES
staticprivate
Initial value:
= new ImmutableSet.Builder<String>()
.add("video/webm",
"video/3gpp",
"video/3gpp2",
"video/ogg",
"video/mpeg",
"video/mp4",
"video/quicktime",
"video/x-msvideo",
"video/x-flv",
"video/x-m4v",
"video/x-ms-wmv"
).build()

Definition at line 75 of file FileTypeUtils.java.

final ImmutableSet<String> org.sleuthkit.autopsy.coreutils.FileTypeUtils.VISUAL_MEDIA_MIME_TYPES
staticprivate
Initial value:
= new ImmutableSet.Builder<String>()
.add("application/vnd.ms-asf",
"application/vnd.rn-realmedia",
"application/x-shockwave-flash"
).build()

Definition at line 138 of file FileTypeUtils.java.


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

Copyright © 2012-2021 Basis Technology. Generated on: Fri Aug 6 2021
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.