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>


字段摘要
 
从类 org.test4j.json.encoder.JSONEncoder 继承的字段
clazz, features, ignoreExplicitFieldType, quote_Char, skipNullField, unMarkClassFlag
 
构造方法摘要
protected ObjectEncoder(Class clazz)
           
 
方法摘要
 boolean encode(T target, Writer writer, List<String> references)
          将java对象序列化为json字符串
protected abstract  Collection<PropertyEncoder> getPropertyEncoders(T target)
          返回对象需要序列化的属性列表
 
从类 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
 

构造方法详细信息

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.