19 package org.sleuthkit.autopsy.corecomponents;
21 import java.awt.Dimension;
22 import java.util.Arrays;
23 import java.util.List;
24 import static java.util.Objects.nonNull;
26 import java.util.SortedSet;
27 import java.util.TreeSet;
28 import java.util.logging.Level;
29 import javax.swing.JPanel;
41 private static final Set<String>
AUDIO_EXTENSIONS =
new TreeSet<>(Arrays.asList(
".mp3",
".wav",
".wma"));
46 private static final String[]
ARCH64 =
new String[]{
"amd64",
"x86_64"};
49 private static final String[]
ARCH32 =
new String[]{
"x86"};
60 logger.log(Level.INFO,
"64 bit JVM detected. Creating JavaFX Video Player.");
63 logger.log(Level.INFO,
"32 bit JVM detected. Creating GStreamer Video Player.");
74 String arch = System.getProperty(
"os.arch");
75 return Arrays.asList(ARCH64).contains(arch);
106 abstract void reset();
114 abstract void setupVideo(
final AbstractFile file,
final Dimension dims);
153 if (AUDIO_EXTENSIONS.contains(
"." + extension) ||
getExtensionsList().contains(
"." + extension)) {
154 SortedSet<String> mimeTypes =
new TreeSet<>(
getMimeTypes());
157 if (nonNull(mimeType)) {
158 return mimeTypes.contains(mimeType);
161 logger.log(Level.WARNING,
"Failed to look up mimetype for " + file.
getName() +
" using FileTypeDetector. Fallingback on AbstractFile.isMimeType", ex);
String getNameExtension()
MimeMatchEnum isMimeType(SortedSet< String > mimeTypes)
String detect(AbstractFile file)
synchronized static Logger getLogger(String name)