DESY ACOP Beans Home

com.cosylab.application.state.impl
Class OldXMLStateStorage

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

public class OldXMLStateStorage
extends DefaultStateStorage

This class is an implementation of the StateStorage that uses a XML file to store the array of the State objects.

Author:
dvitas

Field Summary
 
Fields inherited from class com.cosylab.application.state.impl.DefaultStateStorage
delegate, states
 
Constructor Summary
OldXMLStateStorage()
           
OldXMLStateStorage(StateStorage ss)
          Creates a new XMLStateStorage object.
 
Method Summary
 void load(org.xml.sax.InputSource is)
          DOCUMENT ME!
 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!
static State[] loadStates(org.xml.sax.InputSource is)
          DOCUMENT ME!
 void store(java.io.OutputStream os)
          DOCUMENT ME!
 void store(java.lang.String filePath, java.lang.String applicationName)
          DOCUMENT ME!
static void storeStates(State[] outStates, java.io.OutputStream os)
          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

OldXMLStateStorage

public OldXMLStateStorage()

OldXMLStateStorage

public OldXMLStateStorage(StateStorage ss)
Creates a new XMLStateStorage object.

Parameters:
ss - DOCUMENT ME!
Method Detail

storeStates

public static final void storeStates(State[] outStates,
                                     java.io.OutputStream os)
                              throws java.io.IOException
DOCUMENT ME!

Parameters:
outStates - DOCUMENT ME!
os - DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!

loadStates

public static final State[] loadStates(org.xml.sax.InputSource is)
                                throws java.io.IOException
DOCUMENT ME!

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

load

public void load(java.io.InputStream is)
          throws java.io.IOException
DOCUMENT ME!

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

load

public void load(org.xml.sax.InputSource is)
          throws java.io.IOException
DOCUMENT ME!

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

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!

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.