| | |
| | | */
|
| | | public class FileSettings extends IStoredSettings {
|
| | |
|
| | | private final File propertiesFile;
|
| | | protected final File propertiesFile;
|
| | |
|
| | | private final Properties properties = new Properties();
|
| | |
|
| | |
| | | Properties props = new Properties();
|
| | | is = new FileInputStream(propertiesFile);
|
| | | props.load(is);
|
| | | |
| | |
|
| | | // load properties after we have successfully read file
|
| | | properties.clear();
|
| | | properties.putAll(props);
|
| | |
| | | return properties;
|
| | | }
|
| | |
|
| | | protected long lastRead() {
|
| | | return lastread;
|
| | | }
|
| | |
|
| | | @Override
|
| | | public String toString() {
|
| | | return propertiesFile.getAbsolutePath();
|