public class XStreamSessionIO extends SessionIO
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.
| Constructor and Description |
|---|
XStreamSessionIO() |
| Modifier and Type | Method and Description |
|---|---|
protected com.thoughtworks.xstream.XStream |
createXStream() |
Session |
readSession(Reader reader) |
void |
writeSession(Session session,
Writer writer) |
getInstance, readSession, setInstance, writeSessionprotected com.thoughtworks.xstream.XStream createXStream()
public Session readSession(Reader reader) throws IOException
readSession in class SessionIOIOExceptionpublic void writeSession(Session session, Writer writer) throws IOException
writeSession in class SessionIOIOExceptionCopyright © 2014–2016 European Space Agency (ESA). All rights reserved.