public class CodecMapper extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected static ConcurrentHashMap<Class,Map<Predicate<Type>,Codec>> |
codecMap |
protected static ConcurrentHashMap<Class<? extends Function>,Function> |
formulas |
| 构造器和说明 |
|---|
CodecMapper() |
| 限定符和类型 | 方法和说明 |
|---|---|
static Codec |
getCodec(Class type,
Type fieldClass) |
static Class |
getDataTypeAnnotationClass(Class fieldType) |
static Function<ByteBufferInputStream,?> |
getDecoder(CodecContext context,
Class<? extends Function> clazz) |
static Function<ByteBufferInputStream,?> |
getDefaultDecoder(CodecContext context,
Class type) |
static BiConsumer<ByteBufferOutputStream,? super Object> |
getDefaultEncoder(CodecContext context,
Class type) |
static BiConsumer<ByteBufferOutputStream,? super Object> |
getEncoder(CodecContext context,
Class<? extends Function> clazz) |
static <T,R> Function<T,R> |
getFormula(Class<? extends Function> clazz) |
static boolean |
isSupported(Type type) |
protected static ConcurrentHashMap<Class<? extends Function>,Function> formulas
public static boolean isSupported(Type type)
public static Function<ByteBufferInputStream,?> getDecoder(CodecContext context, Class<? extends Function> clazz)
public static Function<ByteBufferInputStream,?> getDefaultDecoder(CodecContext context, Class type)
public static BiConsumer<ByteBufferOutputStream,? super Object> getEncoder(CodecContext context, Class<? extends Function> clazz)
public static BiConsumer<ByteBufferOutputStream,? super Object> getDefaultEncoder(CodecContext context, Class type)
Copyright © 2019–2025 indunet. All rights reserved.