Class JMH_GenericObjectSerializer
java.lang.Object
runners.jmh.serializers.JMH_GenericObjectSerializer
- Direct Known Subclasses:
JMH_TaskSerializer
A task whose performances will be evaluated.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Objectdeserialize(String filepath) Deserializes an object from a given locationstatic voidserialize(Serializable object, String filepath) Serializes an object at a given location
-
Constructor Details
-
JMH_GenericObjectSerializer
public JMH_GenericObjectSerializer()
-
-
Method Details
-
serialize
public static void serialize(Serializable object, String filepath) throws FileNotFoundException, IOException Serializes an object at a given location- Parameters:
object-filepath-- Throws:
FileNotFoundExceptionIOException
-
deserialize
public static Object deserialize(String filepath) throws FileNotFoundException, IOException, ClassNotFoundException Deserializes an object from a given location- Parameters:
filepath-- Returns:
- the deserialized object
- Throws:
FileNotFoundExceptionIOExceptionClassNotFoundException
-