GrammarScope  4.0.0
Static Public Member Functions | Private Member Functions | Static Private Member Functions | Static Private Attributes | List of all members
grammarscope.persist.Persist Class Reference

Static Public Member Functions

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)
 

Private Member Functions

 Persist ()
 

Static Private Member Functions

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 Private Attributes

static final char[] hexDigit = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F' }
 

Detailed Description

Persist

Author
Bernard Bou

Constructor & Destructor Documentation

◆ Persist()

grammarscope.persist.Persist.Persist ( )
private

Member Function Documentation

◆ getDefaultPath()

static String grammarscope.persist.Persist.getDefaultPath ( final String  persistMoniker)
static

Get default persist file

Parameters
persistMonikerpersist moniker
Returns
path to persist file

◆ loadSettings()

static Properties grammarscope.persist.Persist.loadSettings ( final String  filePath)
static

Load properties from file

Parameters
filePathpersist file
Returns
properties

◆ makeSettings()

static Properties grammarscope.persist.Persist.makeSettings ( final String  persistFile)
static

Obtain settings (handles initial state)

Parameters
persistFilepersist file
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
filePathpersist file
settingssettings 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
nibblethe nibble to convert.

Member Data Documentation

◆ hexDigit

final char [] grammarscope.persist.Persist.hexDigit = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F' }
staticprivate

A table of hex digits


The documentation for this class was generated from the following file: