Package org.esa.snap.rcp.session
Class XStreamSessionIO
- java.lang.Object
-
- org.esa.snap.rcp.session.SessionIO
-
- org.esa.snap.rcp.session.XStreamSessionIO
-
public class XStreamSessionIO extends SessionIO
A Session I/O implementation which usesXStream
to marshall and unmarshallSession
instances to and from XML.Clients may override the
createXStream()
in order to create an appropriateXStream
for their session.- Since:
- BEAM 4.6
- Version:
- $Revision$ $Date$
-
-
Constructor Summary
Constructors Constructor Description XStreamSessionIO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.thoughtworks.xstream.XStream
createXStream()
Session
readSession(Reader reader)
void
writeSession(Session session, Writer writer)
-
Methods inherited from class org.esa.snap.rcp.session.SessionIO
getInstance, readSession, setInstance, writeSession
-
-
-
-
Method Detail
-
createXStream
protected com.thoughtworks.xstream.XStream createXStream()
-
readSession
public Session readSession(Reader reader)
- Specified by:
readSession
in classSessionIO
-
writeSession
public void writeSession(Session session, Writer writer)
- Specified by:
writeSession
in classSessionIO
-
-