fcfe326183e05aa06c04b342d919cd1ead41a55e
[fw/altos] / map-server / altos-mapd / AltosMapdPreferences.java
1 /*
2  * Copyright © 2018 Keith Packard <keithp@keithp.com>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful, but
10  * WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * General Public License for more details.
13  */
14
15 package altosmapd;
16
17 import java.io.*;
18
19 import org.altusmetrum.altoslib_13.*;
20
21 public class AltosMapdPreferences extends AltosPreferencesBackend {
22
23         public String  getString(String key, String def) {
24                 return def;
25         }
26         public void    putString(String key, String value) {
27         }
28
29         public int     getInt(String key, int def) {
30                 return def;
31         }
32
33         public void    putInt(String key, int value) {
34         }
35
36         public double  getDouble(String key, double def) {
37                 return def;
38         }
39
40         public void    putDouble(String key, double value) {
41         }
42
43         public boolean getBoolean(String key, boolean def) {
44                 return def;
45         }
46
47         public void    putBoolean(String key, boolean value) {
48         }
49
50         public byte[]  getBytes(String key, byte[] def) {
51                 return def;
52         }
53
54         public void    putBytes(String key, byte[] value) {
55         }
56
57         public boolean nodeExists(String key) {
58                 return false;
59         }
60
61         public AltosPreferencesBackend node(String key) {
62                 return this;
63         }
64
65         public String[] keys() {
66                 return null;
67         }
68
69         public void    remove(String key) {
70         }
71
72         public void    flush() {
73         }
74
75         public File homeDirectory() {
76                 return new File (".");
77         }
78
79         public void debug(String format, Object ... arguments) {
80                 System.out.printf(format, arguments);
81         }
82
83         public AltosMapdPreferences() {
84         }
85 }