public class XStreamSerializer extends Object
for the counterpart.
Modifier and Type | Method and Description |
---|---|
static <T> void |
serializeObjectToFile(T object,
Path path)
Writes a file with a serialized representation of an object.
|
public static <T> void serializeObjectToFile(T object, Path path) throws IOException
T
- object-typeobject
- the object to serializepath
- path to write the object toIOException
- if the file cannot be writtenCopyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.