public interface Serializer<T>
| Modifier and Type | Method and Description |
|---|---|
default Class<T> |
dataType()
数据类型
|
Object |
deserialize(T data,
Type toType)
反序列化
|
default String |
mimeType()
媒体类型
|
default String |
name()
名字
|
T |
serialize(Object fromObj)
序列化
|
default String name()
default String mimeType()
T serialize(Object fromObj) throws IOException
fromObj - 来源对象IOExceptionObject deserialize(T data, Type toType) throws IOException
toType - 目标类型IOExceptionCopyright © 2025. All rights reserved.