|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.test4j.json.encoder.JSONEncoder<Object>
org.test4j.json.encoder.PropertyEncoder
public abstract class PropertyEncoder
| 字段摘要 |
|---|
| 从类 org.test4j.json.encoder.JSONEncoder 继承的字段 |
|---|
clazz, features, ignoreExplicitFieldType, quote_Char, skipNullField, unMarkClassFlag |
| 构造方法摘要 | |
|---|---|
protected |
PropertyEncoder(int features)
|
| 方法摘要 | |
|---|---|
abstract boolean |
doesSkipNull()
|
boolean |
encode(Object target,
Writer writer,
List<String> references)
将java对象序列化为json字符串 |
protected abstract void |
encodeKey(Writer writer,
List<String> references)
编码对象字段名称或者 Key-Value 的key值 |
protected abstract void |
encodeValue(Writer writer,
List<String> references)
编码对象字段值或者 Key-Value 的value值 |
static PropertyEncoder |
newInstance(Field field,
Object target,
int features)
|
static PropertyEncoder |
newInstance(Object key,
Object value,
int features)
|
| 从类 org.test4j.json.encoder.JSONEncoder 继承的方法 |
|---|
get, setFeatures, setFeatures, setUnMarkClassFlag, wrapException, writeClassFlag, writerNullOrReference, writerSpecProperty |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
protected PropertyEncoder(int features)
| 方法详细信息 |
|---|
protected abstract void encodeKey(Writer writer,
List<String> references)
throws Exception
owner - 字段的所有者,或者K-V所有者Mapwriter - references -
Exception
protected abstract void encodeValue(Writer writer,
List<String> references)
throws Exception
owner - 字段的所有者,或者K-V所有者Mapwriter - references -
Exception
public final boolean encode(Object target,
Writer writer,
List<String> references)
JSONEncoder<Object> 中的 encodewriter - 序列化字符串输出器
public static PropertyEncoder newInstance(Field field,
Object target,
int features)
public static PropertyEncoder newInstance(Object key,
Object value,
int features)
public abstract boolean doesSkipNull()
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||