|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.jdbdump.connect.ConfigurationIO
public abstract class ConfigurationIO
This abstract method is a definition of classes that manage access to configuration data, wherever it is stored. Implementing subclasses can access configuration data on filesystem, using database, over FTP connection, or somewhere else, depending on the implementation.
Constructor Summary | |
---|---|
ConfigurationIO()
|
Method Summary | |
---|---|
boolean |
getDefaultAutoload()
|
boolean |
getDefaultAutosave()
|
protected abstract java.io.InputStream |
getInputStream()
Implementations of this abstract method should cover all logic for reading data from it's storage place, and provide access to it through an InputStream object. |
protected abstract java.io.OutputStream |
getOutputStream()
Implementations of this abstract method should cover all logic for writing data to it's storage place, and provide access to it through an OutputStream object. |
java.util.Hashtable<java.lang.String,java.io.Serializable> |
load()
This method feeds this class' configuration data with current data grabbed from its storage place. |
void |
save(java.util.Hashtable<java.lang.String,java.io.Serializable> data)
This method puts this class' current configuration data to its storage place. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfigurationIO()
Method Detail |
---|
public boolean getDefaultAutosave()
public boolean getDefaultAutoload()
public java.util.Hashtable<java.lang.String,java.io.Serializable> load() throws java.io.IOException
java.io.IOException
- if storage place is inaccessible
java.lang.ClassNotFoundException
public void save(java.util.Hashtable<java.lang.String,java.io.Serializable> data) throws java.io.IOException
java.io.IOException
- if storage place is inaccessibleprotected abstract java.io.InputStream getInputStream() throws java.io.IOException
java.io.IOException
protected abstract java.io.OutputStream getOutputStream() throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |