Package org.jdesktop.application
Class LocalStorage
java.lang.Object
org.jdesktop.application.AbstractBean
org.jdesktop.application.LocalStorage
Access to per application, per user, local file storage.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
deleteFile
(String fileName) protected final ApplicationContext
long
openInputFile
(String fileName) openOutputFile
(String fileName) void
void
setDirectory
(File directory) void
setStorageLimit
(long storageLimit) Methods inherited from class org.jdesktop.application.AbstractBean
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
-
Constructor Details
-
LocalStorage
-
-
Method Details
-
getContext
-
openInputFile
- Throws:
IOException
-
openOutputFile
- Throws:
IOException
-
deleteFile
- Throws:
IOException
-
save
- Throws:
IOException
-
load
- Throws:
IOException
-
getStorageLimit
public long getStorageLimit() -
setStorageLimit
public void setStorageLimit(long storageLimit) -
getDirectory
-
setDirectory
-