Class XStreamSerializer

Object
XStreamSerializer

public class XStreamSerializer extends Object
Serializes an object using the XStream library.
Author:
Owen Feehan
See Also:
  • Method Details

    • serializeObjectToFile

      public static <T> void serializeObjectToFile(T object, Path path) throws IOException
      Writes a file with a serialized representation of an object.
      Type Parameters:
      T - object-type
      Parameters:
      object - the object to serialize
      path - path to write the object to
      Throws:
      IOException - if the file cannot be written