Class DefaultExecutionContextSerializer
java.lang.Object
org.springframework.batch.core.repository.dao.DefaultExecutionContextSerializer
- All Implemented Interfaces:
ExecutionContextSerializer,org.springframework.core.serializer.Deserializer<Map<String,,Object>> org.springframework.core.serializer.Serializer<Map<String,Object>>
An implementation of the
ExecutionContextSerializer that produces/consumes
Base64 content.- Since:
- 2.2
- Author:
- Michael Minella, Mahmoud Ben Hassine
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize(InputStream inputStream) Deserializes an execution context from the providedInputStream.voidserialize(Map<String, Object> context, OutputStream out) Serializes an execution context to the providedOutputStream.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.core.serializer.Deserializer
deserializeFromByteArrayMethods inherited from interface org.springframework.core.serializer.Serializer
serializeToByteArray
-
Constructor Details
-
DefaultExecutionContextSerializer
public DefaultExecutionContextSerializer()
-
-
Method Details
-
serialize
Serializes an execution context to the providedOutputStream. The stream is not closed prior to it's return.- Specified by:
serializein interfaceorg.springframework.core.serializer.Serializer<Map<String,Object>> - Parameters:
context-Mapcontents of theExecutionContext.out-OutputStreamwhere the serialized context information will be written.- Throws:
IOException
-
deserialize
Deserializes an execution context from the providedInputStream.- Specified by:
deserializein interfaceorg.springframework.core.serializer.Deserializer<Map<String,Object>> - Parameters:
inputStream-InputStreamcontaining the information to be deserialized.- Returns:
- the object serialized in the provided
InputStream - Throws:
IOException
-