org.esa.beam.visat.actions.session
Class XStreamSessionIO

java.lang.Object
  extended by org.esa.beam.visat.actions.session.SessionIO
      extended by org.esa.beam.visat.actions.session.XStreamSessionIO

public class XStreamSessionIO
extends SessionIO

A Session I/O implementation which uses XStream to marshall and unmarshall Session instances to and from XML.

Clients may override the createXStream() in order to create an appropriate XStream for their session.

Since:
BEAM 4.6
Version:
$Revision$ $Date$
Author:
Norman Fomferra

Constructor Summary
XStreamSessionIO()
           
 
Method Summary
protected  com.thoughtworks.xstream.XStream createXStream()
           
 Session readSession(Reader reader)
           
 void writeSession(Session session, Writer writer)
           
 
Methods inherited from class org.esa.beam.visat.actions.session.SessionIO
getInstance, readSession, setInstance, writeSession
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XStreamSessionIO

public XStreamSessionIO()
Method Detail

createXStream

protected com.thoughtworks.xstream.XStream createXStream()

readSession

public Session readSession(Reader reader)
                    throws IOException
Specified by:
readSession in class SessionIO
Throws:
IOException

writeSession

public void writeSession(Session session,
                         Writer writer)
                  throws IOException
Specified by:
writeSession in class SessionIO
Throws:
IOException


Copyright © 2002-2012 Brockmann Consult GmbH. All Rights Reserved.