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, writeSession
protected com.thoughtworks.xstream.XStream createXStream()
public Session readSession(Reader reader) throws IOException
readSession
in class SessionIO
IOException
public void writeSession(Session session, Writer writer) throws IOException
writeSession
in class SessionIO
IOException
Copyright © 2014–2015 European Space Agency (ESA). All rights reserved.