public interface Serializer<T>
default String name()
default String mimeType()
T serialize(Object fromObj) throws IOException
fromObj - 来源对象IOExceptionObject deserialize(T data, Type toType) throws IOException
toType - 目标类型IOExceptionCopyright © 2024. All rights reserved.