Autopsy  4.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-2013 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"); //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 
42  public static List<String> getImageExtensions() {
43  return IMAGE_EXTENSIONS;
44  }
45 
46  public static List<String> getVideoExtensions() {
47  return VIDEO_EXTENSIONS;
48  }
49 
50  public static List<String> getAudioExtensions() {
51  return AUDIO_EXTENSIONS;
52  }
53 
54  public static List<String> getDocumentExtensions() {
55  return DOCUMENT_EXTENSIONS;
56  }
57 
58  public static List<String> getExecutableExtensions() {
59  return EXECUTABLE_EXTENSIONS;
60  }
61 
62  public static List<String> getTextExtensions() {
63  return TEXT_EXTENSIONS;
64  }
65 
66  public static List<String> getWebExtensions() {
67  return WEB_EXTENSIONS;
68  }
69 
70  public static List<String> getPDFExtensions() {
71  return PDF_EXTENSIONS;
72  }
73 
74  public static List<String> getArchiveExtensions() {
75  return ARCHIVE_EXTENSIONS;
76  }
77 }

Copyright © 2012-2015 Basis Technology. Generated on: Wed Apr 6 2016
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.