org.test4j.json.encoder
类 ObjectEncoder<T>
java.lang.Object
org.test4j.json.encoder.JSONEncoder<T>
org.test4j.json.encoder.ObjectEncoder<T>
- 直接已知子类:
- MapEncoder, PoJoEncoder
public abstract class ObjectEncoder<T>
- extends JSONEncoder<T>
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObjectEncoder
protected ObjectEncoder(Class clazz)
encode
public boolean encode(T target,
Writer writer,
List<String> references)
- 从类
JSONEncoder 复制的描述
- 将java对象序列化为json字符串
- 指定者:
- 类
JSONEncoder<T> 中的 encode
writer - 序列化字符串输出器
- 返回:
- TODO
getPropertyEncoders
protected abstract Collection<PropertyEncoder> getPropertyEncoders(T target)
- 返回对象需要序列化的属性列表
- 参数:
target -
- 返回:
Copyright © 2013. All rights reserved.