public class XStreamSerializer<T> extends Object implements Serializer<T>
| Modifier and Type | Field and Description |
|---|---|
protected OutputStream |
out |
protected XStreamSerialization |
serde |
protected com.thoughtworks.xstream.XStream |
xstream |
| Constructor and Description |
|---|
XStreamSerializer(XStreamSerialization serde,
com.thoughtworks.xstream.XStream xstream,
OutputStream out) |
protected XStreamSerialization serde
protected com.thoughtworks.xstream.XStream xstream
protected OutputStream out
public XStreamSerializer(XStreamSerialization serde, com.thoughtworks.xstream.XStream xstream, OutputStream out)
public void flush()
throws IOException
flush in interface FlushableIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic void write(Object object) throws IOException
write in interface Serializer<T>IOExceptionCopyright © 2014. All rights reserved.