| | |
| | | */ |
| | | public class ListFileHandler extends FileHandler { |
| | | |
| | | public static final String RB_AUDIOEXTS = "audioexts"; |
| | | public static final String RB_VIDEOEXTS = "videoexts"; |
| | | |
| | | /* Der Logger fuer diesen ListFileHandler */ |
| | | private static final Logger logger = Logger.getLogger(ListFileHandler.class.getName()); |
| | | |
| | |
| | | |
| | | Map extMap = new HashMap(); |
| | | |
| | | public ListFileHandler(String absoluteDirectoryPathAndName) { |
| | | private String conf; |
| | | |
| | | public ListFileHandler(String absoluteDirectoryPathAndName, String conf) { |
| | | super(absoluteDirectoryPathAndName); |
| | | /* |
| | | Ermittlung von Dateifiltern. |
| | |
| | | jeweils als Dateierweiterungen mit Komma getrennt |
| | | z.B. "mp4,m4v" |
| | | */ |
| | | FileStorage fs = new FileStorage(App.getInitParameter(App.getRs(App.RB_AP_CONF))); |
| | | initMap(fs, App.getRs(App.RB_AUDIOEXTS), StorageFile.TYP_AUDIO); |
| | | initMap(fs, App.getRs(App.RB_VIDEOEXTS), StorageFile.TYP_VIDEO); |
| | | FileStorage fs = new FileStorage(conf); |
| | | initMap(fs, getResString(RB_AUDIOEXTS), StorageFile.TYP_AUDIO); |
| | | initMap(fs, getResString(RB_VIDEOEXTS), StorageFile.TYP_VIDEO); |
| | | } |
| | | |
| | | private void initMap(Storage s, String key, String typ) { |