public class MIMETypes extends Object
Created on Dec 26, 2004
Modifier and Type | Field and Description |
---|---|
private String[] |
ALLOWED_FILE_ENDINGS |
private String |
audioPlayer |
private String |
PLAYLIST_TMP_FILENAME |
Constructor and Description |
---|
MIMETypes() |
Modifier and Type | Method and Description |
---|---|
void |
call(String app,
String params)
sends a system call to the given app using the given parameters
|
void |
doSysCalls(Object o)
do the appropriate syscalls for a single selection
|
void |
doSysCalls(Object[] playList)
does the syscalls for multiple selections
|
private String |
getFileType(Object fullPathName) |
String |
getFileType(Object[] playList)
get the filetype for a given selection (e.g.
|
boolean |
hasSingleFileType(Object[] playList)
check if the selection consists of only one or more different filetypes
|
boolean |
isExportable(Object[] playList) |
void |
setAudioPlayer(String audioPlayer)
sets the preferred audio player for files of type audio
|
private String audioPlayer
private String[] ALLOWED_FILE_ENDINGS
private String PLAYLIST_TMP_FILENAME
public void setAudioPlayer(String audioPlayer)
audioPlayer
- - a string containing the path to the audio playerpublic boolean hasSingleFileType(Object[] playList)
playList
- - selected playlistpublic boolean isExportable(Object[] playList)
public String getFileType(Object[] playList)
public void doSysCalls(Object o)
o
- - the selected elementpublic void doSysCalls(Object[] playList)
playList
- - selected playlist