public final class Fj extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Fj.DeserializeConfig
The Class DeserializeConfig.
|
static class |
Fj.SerializeConfig
The Class SerializeConfig.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_DESERIALIZE_FEATURE |
static int |
DEFAULT_SERIALIZE_FEATURE |
static TimeZone |
DEFAULT_TIME_ZONE |
static String |
DEFAULT_TYPE_KEY |
static String |
DEFFAULT_DATE_FORMAT |
static Locale |
DFAULT_LOCAL |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
fromJSON(Class<T> targetType,
File json) |
static <T> T |
fromJSON(Class<T> targetType,
File json,
Fj.DeserializeConfig config) |
static <T> T |
fromJSON(Class<T> targetType,
InputStream json) |
static <T> T |
fromJSON(Class<T> targetType,
InputStream json,
Fj.DeserializeConfig config) |
static <T> T |
fromJSON(Class<T> targetType,
Reader json) |
static <T> T |
fromJSON(Class<T> targetType,
Reader json,
Fj.DeserializeConfig config) |
static <T> T |
fromJSON(Class<T> targetType,
String json) |
static <T> T |
fromJSON(Class<T> targetType,
String json,
Fj.DeserializeConfig config) |
static <T> T |
fromJSON(com.alibaba.fastjson.TypeReference<T> targetType,
File json) |
static <T> T |
fromJSON(com.alibaba.fastjson.TypeReference<T> targetType,
File json,
Fj.DeserializeConfig config) |
static <T> T |
fromJSON(com.alibaba.fastjson.TypeReference<T> targetType,
InputStream json) |
static <T> T |
fromJSON(com.alibaba.fastjson.TypeReference<T> targetType,
InputStream json,
Fj.DeserializeConfig config) |
static <T> T |
fromJSON(com.alibaba.fastjson.TypeReference<T> targetType,
Reader json) |
static <T> T |
fromJSON(com.alibaba.fastjson.TypeReference<T> targetType,
Reader json,
Fj.DeserializeConfig config) |
static <T> T |
fromJSON(com.alibaba.fastjson.TypeReference<T> targetType,
String json) |
static <T> T |
fromJSON(com.alibaba.fastjson.TypeReference<T> targetType,
String json,
Fj.DeserializeConfig config) |
static void |
toJSON(File output,
Object srcObject) |
static void |
toJSON(File output,
Object srcObject,
Fj.SerializeConfig config) |
static String |
toJSON(Object srcObject) |
static String |
toJSON(Object srcObject,
Fj.SerializeConfig config) |
static void |
toJSON(OutputStream output,
Object srcObject) |
static void |
toJSON(OutputStream output,
Object srcObject,
Fj.SerializeConfig config) |
static void |
toJSON(Writer output,
Object srcObject) |
static void |
toJSON(Writer output,
Object srcObject,
Fj.SerializeConfig config) |
public static final TimeZone DEFAULT_TIME_ZONE
public static final Locale DFAULT_LOCAL
public static final String DEFAULT_TYPE_KEY
public static final String DEFFAULT_DATE_FORMAT
public static final int DEFAULT_SERIALIZE_FEATURE
public static final int DEFAULT_DESERIALIZE_FEATURE
public static String toJSON(Object srcObject, Fj.SerializeConfig config)
srcObject - config - public static void toJSON(File output, Object srcObject, Fj.SerializeConfig config)
output - srcObject - config - public static void toJSON(OutputStream output, Object srcObject)
output - srcObject - public static void toJSON(OutputStream output, Object srcObject, Fj.SerializeConfig config)
output - srcObject - config - public static void toJSON(Writer output, Object srcObject, Fj.SerializeConfig config)
output - srcObject - config - public static <T> T fromJSON(Class<T> targetType, String json)
T - targetType - json - public static <T> T fromJSON(Class<T> targetType, String json, Fj.DeserializeConfig config)
T - targetType - json - config - public static <T> T fromJSON(Class<T> targetType, File json)
T - targetType - json - public static <T> T fromJSON(Class<T> targetType, File json, Fj.DeserializeConfig config)
T - targetType - json - config - public static <T> T fromJSON(Class<T> targetType, InputStream json)
T - targetType - json - public static <T> T fromJSON(Class<T> targetType, InputStream json, Fj.DeserializeConfig config)
T - targetType - json - config - public static <T> T fromJSON(Class<T> targetType, Reader json)
T - targetType - json - public static <T> T fromJSON(Class<T> targetType, Reader json, Fj.DeserializeConfig config)
T - targetType - json - config - public static <T> T fromJSON(com.alibaba.fastjson.TypeReference<T> targetType,
String json)
T - targetType - json - public static <T> T fromJSON(com.alibaba.fastjson.TypeReference<T> targetType,
String json,
Fj.DeserializeConfig config)
T - targetType - json - config - public static <T> T fromJSON(com.alibaba.fastjson.TypeReference<T> targetType,
File json)
T - targetType - json - public static <T> T fromJSON(com.alibaba.fastjson.TypeReference<T> targetType,
File json,
Fj.DeserializeConfig config)
T - targetType - json - config - public static <T> T fromJSON(com.alibaba.fastjson.TypeReference<T> targetType,
InputStream json)
T - targetType - json - public static <T> T fromJSON(com.alibaba.fastjson.TypeReference<T> targetType,
InputStream json,
Fj.DeserializeConfig config)
T - targetType - json - config - public static <T> T fromJSON(com.alibaba.fastjson.TypeReference<T> targetType,
Reader json)
T - targetType - json - public static <T> T fromJSON(com.alibaba.fastjson.TypeReference<T> targetType,
Reader json,
Fj.DeserializeConfig config)
T - targetType - json - config - Copyright © 2021. All rights reserved.