org.severe.jripples.states
Class JRipplesStatesSaveAndLoad

java.lang.Object
  extended by org.severe.jripples.states.JRipplesStatesSaveAndLoad

public class JRipplesStatesSaveAndLoad
extends java.lang.Object

This class is used to save and load JRipples states using input/output streams.


Constructor Summary
JRipplesStatesSaveAndLoad()
           
 
Method Summary
static void loadJRipplesStateFromStream(java.io.InputStream stream)
          Loads JRipples EIG state from a provided input stream.
static void saveJRipplesStateToStream(java.io.OutputStreamWriter jarWriter, java.lang.String conf_name, java.lang.String conf_info)
          Writes JRipples EIG state into a provided output stream.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JRipplesStatesSaveAndLoad

public JRipplesStatesSaveAndLoad()
Method Detail

loadJRipplesStateFromStream

public static void loadJRipplesStateFromStream(java.io.InputStream stream)
Loads JRipples EIG state from a provided input stream. Also, activates saved JRipples modules.

Parameters:
stream - input stream

saveJRipplesStateToStream

public static void saveJRipplesStateToStream(java.io.OutputStreamWriter jarWriter,
                                             java.lang.String conf_name,
                                             java.lang.String conf_info)
Writes JRipples EIG state into a provided output stream. Also, saves a list of active JRipples modules.

Parameters:
jarWriter - output stream
conf_name - name of the configuration to be saved
conf_info - comments on the configuration to be saved