1 18 package org.osgi.service.prefs; 19 20 115 public interface Preferences { 116 126 public void put(String key, String value); 127 128 144 public String get(String key, String def); 145 146 155 public void remove(String key); 156 157 168 public void clear() throws BackingStoreException; 169 170 194 public void putInt(String key, int value); 195 196 223 public int getInt(String key, int def); 224 225 251 public void putLong(String key, long value); 252 253 280 public long getLong(String key, long def); 281 282 308 public void putBoolean(String key, boolean value); 309 310 339 public boolean getBoolean(String key, boolean def); 340 341 366 public void putFloat(String key, float value); 367 368 395 public float getFloat(String key, float def); 396 397 423 public void putDouble(String key, double value); 424 425 452 public double getDouble(String key, double def); 453 454 485 public void putByteArray(String key, byte[] value); 486 487 519 public byte[] getByteArray(String key, byte[] def); 520 521 533 public String [] keys() throws BackingStoreException; 534 535 546 public String [] childrenNames() throws BackingStoreException; 547 548 555 public Preferences parent(); 556 557 581 public Preferences node(String pathName); 582 583 611 public boolean nodeExists(String pathName) 612 throws BackingStoreException; 613 614 634 public void removeNode() throws BackingStoreException; 635 636 641 public String name(); 642 643 657 public String absolutePath(); 658 659 685 public void flush() throws BackingStoreException; 686 687 701 public void sync() throws BackingStoreException; 702 } 703 | Popular Tags |