类 ForestGoogleProtobufConverter
java.lang.Object
com.dtflys.forest.converter.protobuf.ForestGoogleProtobufConverter
- 所有已实现的接口:
ForestConverter<byte[]>,ForestEncoder,ForestProtobufConverter
Protobuf转换器
- 从以下版本开始:
- 2020/12/18
- 作者:
- YAKAX
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明byte[]convertToByte(Object source) <T> TconvertToJavaObject(byte[] source, Class<T> targetType, Charset charset) 将源数据转换为目标类型(Class)的java对象<T> TconvertToJavaObject(byte[] source, Type targetType) 将源数据转换为目标类型(Type)的java对象<T> TconvertToJavaObject(byte[] source, Type targetType, Charset charset) 将源数据转换为目标类型(Type)的java对象获取当前数据转换器转换类型从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 com.dtflys.forest.converter.ForestConverter
convertToJavaObject从接口继承的方法 com.dtflys.forest.converter.ForestEncoder
encodeRequestBody, encodeRequestBody, encodeRequestBody从接口继承的方法 com.dtflys.forest.converter.protobuf.ForestProtobufConverter
encodeRequestBody, encodeToString
-
构造器详细资料
-
ForestGoogleProtobufConverter
public ForestGoogleProtobufConverter()
-
-
方法详细资料
-
convertToJavaObject
从接口复制的说明:ForestConverter将源数据转换为目标类型(Type)的java对象- 指定者:
convertToJavaObject在接口中ForestConverter<byte[]>- 类型参数:
T- 目标类型泛型- 参数:
source- 源数据targetType- 目标类型 (Type对象)- 返回:
- 转换后的目标类型对象
-
convertToByte
- 指定者:
convertToByte在接口中ForestProtobufConverter
-
convertToJavaObject
从接口复制的说明:ForestConverter将源数据转换为目标类型(Class)的java对象- 指定者:
convertToJavaObject在接口中ForestConverter<byte[]>- 类型参数:
T- 目标类型泛型- 参数:
source- 源数据targetType- 目标类型 (Class对象)charset- 字符集- 返回:
- 转换后的目标类型对象
-
convertToJavaObject
从接口复制的说明:ForestConverter将源数据转换为目标类型(Type)的java对象- 指定者:
convertToJavaObject在接口中ForestConverter<byte[]>- 类型参数:
T- 目标类型泛型- 参数:
source- 源数据targetType- 目标类型 (Type对象)charset- 字符集- 返回:
- 转换后的目标类型对象
-
getDataType
从接口复制的说明:ForestConverter获取当前数据转换器转换类型- 指定者:
getDataType在接口中ForestConverter<byte[]>- 返回:
ForestDataType对象实例
-