接口 SerializableSession
public interface SerializableSession
- 从以下版本开始:
- 4.0 2023/2/27 22:42
- 作者:
- Harry Yang
-
方法概要
修饰符和类型方法说明voidreadObjectData(ObjectInputStream stream) Read a serialized version of the contents of this session object from the specified object input stream, without requiring that the StandardSession itself have been serialized.voidwriteObjectData(ObjectOutputStream stream) Write a serialized version of the contents of this session object to the specified object output stream, without requiring that the StandardSession itself have been serialized.
-
方法详细资料
-
writeObjectData
Write a serialized version of the contents of this session object to the specified object output stream, without requiring that the StandardSession itself have been serialized.- 参数:
stream- The object output stream to write to- 抛出:
IOException- if an input/output error occurs
-
readObjectData
Read a serialized version of the contents of this session object from the specified object input stream, without requiring that the StandardSession itself have been serialized.- 参数:
stream- The object input stream to read from- 抛出:
ClassNotFoundException- if an unknown class is specifiedIOException- if an input/output error occurs
-