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 TypeMethodDescriptionbooleandeleteFile(String fileName) protected final ApplicationContextlongopenInputFile(String fileName) openOutputFile(String fileName) voidvoidsetDirectory(File directory) voidsetStorageLimit(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
-