- java.lang.Object
-
- org.redkale.convert.Convert<R,W>
-
- org.redkale.convert.TextConvert<JsonReader,JsonWriter>
-
- org.redkale.convert.json.JsonConvert
-
public class JsonConvert extends TextConvert<JsonReader,JsonWriter>
详情见: https://redkale.org- 作者:
- zhangjx
-
-
字段概要
字段 修饰符和类型 字段 说明 static Type
TYPE_LIST_STRING
static Type
TYPE_MAP_STRING_STRING
static Type
TYPE_RETRESULT_STRING
-
从类继承的字段 org.redkale.convert.Convert
factory, FEATURE_NULLABLE, FEATURE_TINY, features
-
-
构造器概要
构造器 限定符 构造器 说明 protected
JsonConvert(JsonFactory factory, int features)
-
方法概要
-
从类继承的方法 org.redkale.convert.TextConvert
convertListFrom, convertTo, isBinary
-
从类继承的方法 org.redkale.convert.Convert
configWrite, convertTo, convertTo, convertToBytes, convertToBytes, convertToBytes, fieldFunc
-
-
-
-
构造器详细资料
-
JsonConvert
protected JsonConvert(JsonFactory factory, int features)
-
-
方法详细资料
-
getFactory
public JsonFactory getFactory()
- 覆盖:
getFactory
在类中Convert<JsonReader,JsonWriter>
-
root
public static JsonConvert root()
-
newConvert
public JsonConvert newConvert(BiFunction<Attribute,Object,Object> objFieldFunc)
- 覆盖:
newConvert
在类中Convert<JsonReader,JsonWriter>
-
newConvert
public JsonConvert newConvert(BiFunction<Attribute,Object,Object> objFieldFunc, Function<Object,ConvertField[]> objExtFunc)
- 覆盖:
newConvert
在类中Convert<JsonReader,JsonWriter>
-
newConvert
public JsonConvert newConvert(BiFunction<Attribute,Object,Object> objFieldFunc, BiFunction mapFieldFunc)
- 覆盖:
newConvert
在类中Convert<JsonReader,JsonWriter>
-
newConvert
public JsonConvert newConvert(BiFunction<Attribute,Object,Object> objFieldFunc, BiFunction mapFieldFunc, Function<Object,ConvertField[]> objExtFunc)
- 指定者:
newConvert
在类中Convert<JsonReader,JsonWriter>
-
pollReader
public JsonReader pollReader()
- 指定者:
pollReader
在类中Convert<JsonReader,JsonWriter>
-
offerReader
public void offerReader(JsonReader in)
- 指定者:
offerReader
在类中Convert<JsonReader,JsonWriter>
-
pollWriter
public JsonWriter pollWriter()
- 指定者:
pollWriter
在类中Convert<JsonReader,JsonWriter>
-
offerWriter
public void offerWriter(JsonWriter writer)
- 指定者:
offerWriter
在类中Convert<JsonReader,JsonWriter>
-
convertFrom
public <T> T convertFrom(Type type, byte[] bytes)
- 指定者:
convertFrom
在类中Convert<JsonReader,JsonWriter>
-
convertFrom
public <T> T convertFrom(Type type, byte[] bytes, int offset, int length)
- 指定者:
convertFrom
在类中Convert<JsonReader,JsonWriter>
-
convertFrom
public <T> T convertFrom(Type type, String text)
- 指定者:
convertFrom
在类中TextConvert<JsonReader,JsonWriter>
-
convertFrom
public <T> T convertFrom(Type type, char[] text)
-
convertFrom
public <T> T convertFrom(Type type, char[] text, int offset, int length)
-
convertFrom
public <T> T convertFrom(Type type, InputStream in)
-
convertFrom
public <T> T convertFrom(Type type, ByteBuffer... buffers)
- 指定者:
convertFrom
在类中Convert<JsonReader,JsonWriter>
-
convertFrom
public <T> T convertFrom(Type type, JsonReader reader)
- 指定者:
convertFrom
在类中Convert<JsonReader,JsonWriter>
-
convertFrom
public <V> V convertFrom(String text)
-
convertFrom
public <V> V convertFrom(char[] text)
-
convertFrom
public <V> V convertFrom(char[] text, int offset, int length)
-
convertFrom
public <V> V convertFrom(InputStream in)
-
convertFrom
public <V> V convertFrom(ByteBuffer... buffers)
-
convertFrom
public <V> V convertFrom(JsonReader reader)
-
convertTo
public String convertTo(Type type, Object value)
从类复制的说明:TextConvert
序列化- 指定者:
convertTo
在类中TextConvert<JsonReader,JsonWriter>
- 参数:
type
- Typevalue
- Object- 返回:
- String
- 另请参阅:
convertTo(java.lang.reflect.Type, java.lang.Object)
-
convertToBytes
public byte[] convertToBytes(Type type, Object value)
- 指定者:
convertToBytes
在类中Convert<JsonReader,JsonWriter>
-
convertToBytes
public void convertToBytes(Type type, Object value, ConvertBytesHandler handler)
- 指定者:
convertToBytes
在类中Convert<JsonReader,JsonWriter>
-
convertToBytes
public void convertToBytes(ByteArray array, Type type, Object value)
- 指定者:
convertToBytes
在类中Convert<JsonReader,JsonWriter>
-
convertTo
public void convertTo(OutputStream out, Type type, Object value)
-
convertTo
public ByteBuffer[] convertTo(Supplier<ByteBuffer> supplier, Type type, Object value)
- 指定者:
convertTo
在类中Convert<JsonReader,JsonWriter>
-
convertTo
public void convertTo(JsonWriter writer, Type type, Object value)
- 指定者:
convertTo
在类中Convert<JsonReader,JsonWriter>
-
-