|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.tuwien.ifs.somtoolbox.apps.viewer.fileutils.MIMETypes
public class MIMETypes
utility class to handle different filetypes
shall contain actions for all needed filetypes
Created on Dec 26, 2004
Field Summary | |
---|---|
private String[] |
ALLOWED_FILE_ENDINGS
|
private String |
audioPlayer
|
private String |
PLAYLIST_TMP_FILENAME
|
Constructor Summary | |
---|---|
MIMETypes()
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private String audioPlayer
private String[] ALLOWED_FILE_ENDINGS
private String PLAYLIST_TMP_FILENAME
Constructor Detail |
---|
public MIMETypes()
Method Detail |
---|
public void setAudioPlayer(String audioPlayer)
audioPlayer
- - a string containing the path to the audio playerpublic boolean hasSingleFileType(Object[] playList)
playList
- - selected playlist
public boolean isExportable(Object[] playList)
public String getFileType(Object[] playList)
public void doSysCalls(Object o)
o
- - the selected elementpublic void doSysCalls(Object[] playList)
playList
- - selected playlistprivate String getFileType(Object fullPathName)
public void call(String app, String params)
app
- - application to be executedparams
- - parameters
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |