| | |
| | | /* |
| | | Helix - Dateiverwaltung |
| | | Copyright (C) 2021 Ulrich Hilger |
| | | Calypso - Media Player Remote Control via HTTP for Raspberry Pi |
| | | Copyright (C) 2021-2023 Ulrich Hilger |
| | | |
| | | This program is free software: you can redistribute it and/or modify |
| | | it under the terms of the GNU Affero General Public License as |
| | | published by the Free Software Foundation, either version 3 of the |
| | | License, or (at your option) any later version. |
| | | This program is free software: you can redistribute it and/or modify |
| | | it under the terms of the GNU Affero General Public License as |
| | | published by the Free Software Foundation, either version 3 of the |
| | | License, or (at your option) any later version. |
| | | |
| | | This program is distributed in the hope that it will be useful, |
| | | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| | | GNU Affero General Public License for more details. |
| | | This program is distributed in the hope that it will be useful, |
| | | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| | | GNU Affero General Public License for more details. |
| | | |
| | | You should have received a copy of the GNU Affero General Public License |
| | | along with this program. If not, see <https://www.gnu.org/licenses/>. |
| | | */ |
| | | You should have received a copy of the GNU Affero General Public License |
| | | along with this program. If not, see <https://www.gnu.org/licenses/>. |
| | | */ |
| | | |
| | | package de.uhilger.calypso.neu; |
| | | |
| | | import java.io.File; |
| | |
| | | Logger.getLogger(AppProperties.class.getName()).log(Level.INFO, fName); |
| | | InputStream in = null; |
| | | try { |
| | | // Einstellungen aus Datei lesen |
| | | //AppProperties einst = new AppProperties(); |
| | | File einstellungenDatei = new File(fName); |
| | | in = new FileInputStream(einstellungenDatei); |
| | | |
| | | //BufferedReader br = new BufferedReader(new InputStreamReader(in)); |
| | | //String line = br.readLine(); |
| | | //while(line != null) { |
| | | // System.out.println(line); |
| | | // line = br.readLine(); |
| | | //} |
| | | //br.close(); |
| | | |
| | | |
| | | load(in); |
| | | in.close(); |
| | | } catch (FileNotFoundException ex) { |
| | |
| | | Logger.getLogger(AppProperties.class.getName()).log(Level.SEVERE, null, ex); |
| | | } |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | | } |