Class LibraryStore
java.lang.Object
io.github.jbastgen.stemma.app.config.LibraryStore
Remembers which repositories are in the library, as a list of folders in the per-user configuration directory.
Reading never fails (a missing or broken file is an empty library); writing is atomic.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
LibraryStore
- Parameters:
file-library.propertiesin the configuration folder
-
-
Method Details
-
defaultFile
library.propertiesnext to the settings file. -
load
The stored repository folders, in library order. -
save
Writes the library: a temporary file first, then moved over the old one, so a crash cannot leave a half-written library.- Throws:
IOException
-