DESY ACOP Beans Home

com.cosylab.application.state.impl
Class SerialStateStorage

java.lang.Object
  extended by com.cosylab.application.state.impl.DefaultStateStorage
      extended by com.cosylab.application.state.impl.SerialStateStorage
All Implemented Interfaces:
StateStorage

public class SerialStateStorage
extends DefaultStateStorage

This class implements the state storage and saves states into a binary file using simple JAVA serialization.

Author:
dvitas

Field Summary
 
Fields inherited from class com.cosylab.application.state.impl.DefaultStateStorage
delegate, states
 
Constructor Summary
SerialStateStorage()
           
SerialStateStorage(StateStorage ss)
          Creates a new SerialStateStorage object.
 
Method Summary
 void load(java.io.InputStream is)
          DOCUMENT ME!
 void load(java.lang.String filePath, java.lang.String applicationName)
          DOCUMENT ME! TODO: Add load(InputStream, String) to support loading from non-file sources!
 void store(java.io.OutputStream os)
          DOCUMENT ME!
 void store(java.lang.String filePath, java.lang.String applicationName)
          DOCUMENT ME!
 
Methods inherited from class com.cosylab.application.state.impl.DefaultStateStorage
add, addAll, contains, getInputStream, getOutputStream, getStates, iterator, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerialStateStorage

public SerialStateStorage()

SerialStateStorage

public SerialStateStorage(StateStorage ss)
Creates a new SerialStateStorage object.

Parameters:
ss - DOCUMENT ME!
Method Detail

load

public void load(java.lang.String filePath,
                 java.lang.String applicationName)
          throws java.io.IOException
Description copied from interface: StateStorage
DOCUMENT ME! TODO: Add load(InputStream, String) to support loading from non-file sources!

Specified by:
load in interface StateStorage
Specified by:
load in class DefaultStateStorage
Parameters:
filePath - DOCUMENT ME!
applicationName - DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!

load

public void load(java.io.InputStream is)
          throws java.io.IOException
Description copied from interface: StateStorage
DOCUMENT ME!

Parameters:
is - DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!

store

public void store(java.lang.String filePath,
                  java.lang.String applicationName)
           throws java.io.IOException
Description copied from class: DefaultStateStorage
DOCUMENT ME!

Specified by:
store in interface StateStorage
Specified by:
store in class DefaultStateStorage
Parameters:
filePath - DOCUMENT ME!
applicationName - DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!

store

public void store(java.io.OutputStream os)
           throws java.io.IOException
Description copied from interface: StateStorage
DOCUMENT ME!

Throws:
java.io.IOException - DOCUMENT ME!


Copyright © 2010. All Rights Reserved.