Autopsy  4.13.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
FileTypeExtensions.java
Go to the documentation of this file.
1 /*
2  * Autopsy Forensic Browser
3  *
4  * Copyright 2011-2016 Basis Technology Corp.
5  * Contact: carrier <at> sleuthkit <dot> org
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  */
19 package org.sleuthkit.autopsy.datamodel;
20 
21 import java.util.Arrays;
22 import java.util.List;
23 
28 public class FileTypeExtensions {
29 
30  private final static List<String> IMAGE_EXTENSIONS = Arrays.asList(".jpg", ".jpeg", ".png", ".psd", ".nef", ".tiff", ".bmp", ".tec", ".tif", ".webp"); //NON-NLS
31  private final static List<String> VIDEO_EXTENSIONS = Arrays.asList(".aaf", ".3gp", ".asf", ".avi", ".m1v", ".m2v", //NON-NLS
32  ".m4v", ".mp4", ".mov", ".mpeg", ".mpg", ".mpe", ".mp4", ".rm", ".wmv", ".mpv", ".flv", ".swf"); //NON-NLS
33  private final static List<String> AUDIO_EXTENSIONS = Arrays.asList(".aiff", ".aif", ".flac", ".wav", ".m4a", ".ape", //NON-NLS
34  ".wma", ".mp2", ".mp1", ".mp3", ".aac", ".mp4", ".m4p", ".m1a", ".m2a", ".m4r", ".mpa", ".m3u", ".mid", ".midi", ".ogg"); //NON-NLS
35  private final static List<String> DOCUMENT_EXTENSIONS = Arrays.asList(".doc", ".docx", ".odt", ".xls", ".xlsx", ".ppt", ".pptx"); //NON-NLS
36  private final static List<String> EXECUTABLE_EXTENSIONS = Arrays.asList(".exe", ".msi", ".cmd", ".com", ".bat", ".reg", ".scr", ".dll", ".ini"); //NON-NLS
37  private final static List<String> TEXT_EXTENSIONS = Arrays.asList(".txt", ".rtf", ".log", ".text", ".xml"); //NON-NLS
38  private final static List<String> WEB_EXTENSIONS = Arrays.asList(".html", ".htm", ".css", ".js", ".php", ".aspx"); //NON-NLS
39  private final static List<String> PDF_EXTENSIONS = Arrays.asList(".pdf"); //NON-NLS
40  private final static List<String> ARCHIVE_EXTENSIONS = Arrays.asList(".zip", ".rar", ".7zip", ".7z", ".arj", ".tar", ".gzip", ".bzip", ".bzip2", ".cab", ".jar", ".cpio", ".ar", ".gz", ".tgz", ".bz2"); //NON-NLS
41  private final static List<String> DATABASE_EXTENSIONS = Arrays.asList(".db", ".db3", ".sqlite", ".sqlite3"); //NON-NLS
42 
43  public static List<String> getImageExtensions() {
44  return IMAGE_EXTENSIONS;
45  }
46 
47  public static List<String> getVideoExtensions() {
48  return VIDEO_EXTENSIONS;
49  }
50 
51  public static List<String> getAudioExtensions() {
52  return AUDIO_EXTENSIONS;
53  }
54 
55  public static List<String> getDocumentExtensions() {
56  return DOCUMENT_EXTENSIONS;
57  }
58 
59  public static List<String> getExecutableExtensions() {
60  return EXECUTABLE_EXTENSIONS;
61  }
62 
63  public static List<String> getTextExtensions() {
64  return TEXT_EXTENSIONS;
65  }
66 
67  public static List<String> getWebExtensions() {
68  return WEB_EXTENSIONS;
69  }
70 
71  public static List<String> getPDFExtensions() {
72  return PDF_EXTENSIONS;
73  }
74 
75  public static List<String> getArchiveExtensions() {
76  return ARCHIVE_EXTENSIONS;
77  }
78 
79  public static List<String> getDatabaseExtensions() {
80  return DATABASE_EXTENSIONS;
81  }
82 
83  private FileTypeExtensions() {
84  }
85 
86 }

Copyright © 2012-2019 Basis Technology. Generated on: Tue Jan 7 2020
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.