2 * Copyright © 2018 Keith Packard <keithp@keithp.com>
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.
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.
19 import org.altusmetrum.altoslib_14.*;
21 public class AltosMapdPreferences extends AltosPreferencesBackend {
23 public String getString(String key, String def) {
26 public void putString(String key, String value) {
29 public int getInt(String key, int def) {
33 public void putInt(String key, int value) {
36 public double getDouble(String key, double def) {
40 public void putDouble(String key, double value) {
43 public boolean getBoolean(String key, boolean def) {
47 public void putBoolean(String key, boolean value) {
50 public byte[] getBytes(String key, byte[] def) {
54 public void putBytes(String key, byte[] value) {
57 public boolean nodeExists(String key) {
61 public AltosPreferencesBackend node(String key) {
65 public String[] keys() {
69 public void remove(String key) {
75 public File homeDirectory() {
76 return new File (".");
79 public void debug(String format, Object ... arguments) {
80 System.out.printf(format, arguments);
83 public AltosMapdPreferences() {