org.test4j.json.encoder.single
类 SpecTypeEncoder<T>
java.lang.Object
org.test4j.json.encoder.JSONEncoder<T>
org.test4j.json.encoder.SingleEncoder<T>
org.test4j.json.encoder.single.SpecTypeEncoder<T>
- 直接已知子类:
- AppendableEncoder, AtomicBooleanEncoder, AtomicIntegerArrayEncoder, AtomicIntegerEncoder, AtomicLongArrayEncoder, AtomicLongEncoder, AtomicReferenceArrayEncoder, AtomicReferenceEncoder, DateEncoder, FileEncoder, ObjectNameEncoder, SimpleDateFormatEncoder, TabularDataEncoder
public abstract class SpecTypeEncoder<T>
- extends SingleEncoder<T>
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpecTypeEncoder
protected SpecTypeEncoder(Class clazz)
encode
public final boolean encode(T target,
Writer writer,
List<String> references)
- 从类
JSONEncoder 复制的描述
- 将java对象序列化为json字符串
- 指定者:
- 类
JSONEncoder<T> 中的 encode
writer - 序列化字符串输出器
- 返回:
- TODO
encodeSingleValue
protected abstract void encodeSingleValue(T target,
Writer writer)
throws Exception
- 抛出:
Exception
encodeOtherProperty
protected abstract void encodeOtherProperty(T target,
Writer writer)
throws Exception
- 抛出:
Exception
Copyright © 2013. All rights reserved.