jondonym.console
Class JonDoConsole.LocalFileConfiguration

java.lang.Object
  extended by jondonym.console.JonDoConsole.LocalFileConfiguration
All Implemented Interfaces:
Configuration
Enclosing class:
JonDoConsole

private static class JonDoConsole.LocalFileConfiguration
extends java.lang.Object
implements Configuration

We know it is an XML configuration, so we may use XML methods. This is not very nice and other people should not do this, as the configuration format might change (compression etc.). Therefore this class is private and not for public use.


Field Summary
private  java.io.File CONFIGURATION
           
 
Constructor Summary
private JonDoConsole.LocalFileConfiguration()
           
 
Method Summary
 ISqlite getDatabaseInterface()
          Optional: an sqlite database interface for caching the database entries.
 java.lang.String read()
          Returns the configuration content as String.
 void write(java.lang.String a_configurationContent)
          Writes the configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONFIGURATION

private final java.io.File CONFIGURATION
Constructor Detail

JonDoConsole.LocalFileConfiguration

private JonDoConsole.LocalFileConfiguration()
Method Detail

read

public java.lang.String read()
                      throws java.lang.Exception
Description copied from interface: Configuration
Returns the configuration content as String.

Specified by:
read in interface Configuration
Returns:
the configuration content as String or null if the configuration is empty or does not exist
Throws:
java.lang.Exception - if an error occurs while reading the configuration to a String

write

public void write(java.lang.String a_configurationContent)
           throws java.lang.Exception
Description copied from interface: Configuration
Writes the configuration.

Specified by:
write in interface Configuration
Throws:
java.lang.Exception

getDatabaseInterface

public ISqlite getDatabaseInterface()
Description copied from interface: Configuration
Optional: an sqlite database interface for caching the database entries. Leads to a faster startup. May be null.

Specified by:
getDatabaseInterface in interface Configuration
Returns: