类 DefaultExecutionContextSerializer

  • 所有已实现的接口:
    ExecutionContextSerializer, org.springframework.core.serializer.Deserializer<java.util.Map<java.lang.String,​java.lang.Object>>, org.springframework.core.serializer.Serializer<java.util.Map<java.lang.String,​java.lang.Object>>

    public class DefaultExecutionContextSerializer
    extends java.lang.Object
    implements ExecutionContextSerializer
    An implementation of the ExecutionContextSerializer using the default serialization implementations from Spring (DefaultSerializer and DefaultDeserializer).
    从以下版本开始:
    2.2
    作者:
    Michael Minella
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型方法说明
      java.util.Map<java.lang.String,​java.lang.Object>deserialize​(java.io.InputStream inputStream)
      Deserializes an execution context from the provided InputStream.
      voidserialize​(java.util.Map<java.lang.String,​java.lang.Object> context, java.io.OutputStream out)
      Serializes an execution context to the provided OutputStream.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 方法详细资料

      • serialize

        public void serialize​(java.util.Map<java.lang.String,​java.lang.Object> context,
                              java.io.OutputStream out)
                       throws java.io.IOException
        Serializes an execution context to the provided OutputStream. The stream is not closed prior to it's return.
        指定者:
        serialize 在接口中 org.springframework.core.serializer.Serializer<java.util.Map<java.lang.String,​java.lang.Object>>
        参数:
        context - Map contents of the ExecutionContext.
        out - OutputStream where the serialized context information will be written.
        抛出:
        java.io.IOException
      • deserialize

        public java.util.Map<java.lang.String,​java.lang.Object> deserialize​(java.io.InputStream inputStream)
                                                                           throws java.io.IOException
        Deserializes an execution context from the provided InputStream.
        指定者:
        deserialize 在接口中 org.springframework.core.serializer.Deserializer<java.util.Map<java.lang.String,​java.lang.Object>>
        参数:
        inputStream - InputStream containing the information to be deserialized.
        返回:
        the object serialized in the provided InputStream
        抛出:
        java.io.IOException