|
static Properties | makeSettings (final String persistFile) |
|
static Properties | loadSettings (final String filePath) |
|
static boolean | saveSettings (final String filePath, final Properties settings) |
|
static String | getDefaultPath (final String persistMoniker) |
|
|
static void | store (final Properties properties, final OutputStream out, @SuppressWarnings("SameParameterValue") final String comments) throws IOException |
|
static String | saveConvert (final String str, final boolean escapeSpace, @SuppressWarnings("SameParameterValue") final boolean escapeUnicode) |
|
static char | toHex (final int nibble) |
|
|
static final char[] | hexDigit = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F' } |
|
Persist
- Author
- Bernard Bou
◆ Persist()
grammarscope.persist.Persist.Persist |
( |
| ) |
|
|
private |
◆ getDefaultPath()
static String grammarscope.persist.Persist.getDefaultPath |
( |
final String |
persistMoniker | ) |
|
|
static |
Get default persist file
- Parameters
-
persistMoniker | persist moniker |
- Returns
- path to persist file
◆ loadSettings()
static Properties grammarscope.persist.Persist.loadSettings |
( |
final String |
filePath | ) |
|
|
static |
Load properties from file
- Parameters
-
- Returns
- properties
◆ makeSettings()
static Properties grammarscope.persist.Persist.makeSettings |
( |
final String |
persistFile | ) |
|
|
static |
Obtain settings (handles initial state)
- Parameters
-
- Returns
- properties
◆ saveConvert()
static String grammarscope.persist.Persist.saveConvert |
( |
final String |
str, |
|
|
final boolean |
escapeSpace, |
|
|
@SuppressWarnings("SameParameterValue") final boolean |
escapeUnicode |
|
) |
| |
|
staticprivate |
◆ saveSettings()
static boolean grammarscope.persist.Persist.saveSettings |
( |
final String |
filePath, |
|
|
final Properties |
settings |
|
) |
| |
|
static |
Save persist data
- Parameters
-
filePath | persist file |
settings | settings to persist |
- Returns
- true if successful
◆ store()
static void grammarscope.persist.Persist.store |
( |
final Properties |
properties, |
|
|
final OutputStream |
out, |
|
|
@SuppressWarnings("SameParameterValue") final String |
comments |
|
) |
| throws IOException |
|
staticprivate |
◆ toHex()
static char grammarscope.persist.Persist.toHex |
( |
final int |
nibble | ) |
|
|
staticprivate |
Convert a nibble to a hex character
- Parameters
-
nibble | the nibble to convert. |
◆ hexDigit
final char [] grammarscope.persist.Persist.hexDigit = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F' } |
|
staticprivate |
The documentation for this class was generated from the following file:
- grammarscope/common/src/main/java/grammarscope/persist/Persist.java