java.lang.Object
org.jpo.datamodel.PrefObj
Class used to serialise the memorised pictures of a camera
-
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectgetObject(Preferences prefs, String key) Retrieves the object from the preferencesstatic voidputObject(Preferences prefs, String key, Object o) Puts an object in the preferences
-
Method Details
-
putObject
public static void putObject(Preferences prefs, String key, Object o) throws IOException, BackingStoreException Puts an object in the preferences- Parameters:
prefs- the preferences to store intokey- the Key under which to storeo- the Object to store- Throws:
IOException- Error when no goodBackingStoreException- Error when no good
-
getObject
public static Object getObject(Preferences prefs, String key) throws IOException, BackingStoreException, ClassNotFoundException Retrieves the object from the preferences- Parameters:
prefs- the preferences to retrieve fromkey- the key- Returns:
- The object
- Throws:
IOException- Error if no goodBackingStoreException- Error if no goodClassNotFoundException- Error if no good
-