From ad3e2db5eefd3093a066e7b61df0653abc9b6f2e Mon Sep 17 00:00:00 2001
From: ulrich
Date: Fri, 07 May 2021 14:05:08 +0000
Subject: [PATCH] Nicht erforderliche globale Variablen entfernt

---
 src/de/uhilger/tango/api/ListFileHandler.java |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/src/de/uhilger/tango/api/ListFileHandler.java b/src/de/uhilger/tango/api/ListFileHandler.java
index 3aed9e0..1366a8d 100644
--- a/src/de/uhilger/tango/api/ListFileHandler.java
+++ b/src/de/uhilger/tango/api/ListFileHandler.java
@@ -48,6 +48,9 @@
  */
 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());
   
@@ -58,7 +61,9 @@
   
   Map extMap = new HashMap();
   
-  public ListFileHandler(String absoluteDirectoryPathAndName) {
+  private String conf;
+  
+  public ListFileHandler(String absoluteDirectoryPathAndName, String conf) {
     super(absoluteDirectoryPathAndName);
     /*
       Ermittlung von Dateifiltern. 
@@ -66,9 +71,9 @@
       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) {

--
Gitblit v1.9.3