org.test4j.json.encoder.single
类 FixedTypeEncoder<T>

java.lang.Object
  继承者 org.test4j.json.encoder.JSONEncoder<T>
      继承者 org.test4j.json.encoder.SingleEncoder<T>
          继承者 org.test4j.json.encoder.single.FixedTypeEncoder<T>
直接已知子类:
BigDecimalEncoder, BigIntegerEncoder, BooleanEncoder, ByteEncoder, CharEncoder, CharsetEncoder, ClazzEncoder, CompositeDataEncoder, DoubleEncoder, EnumEncoder, FloatEncoder, InetAddressEncoder, IntegerEncoder, LocaleEncoder, LongEncoder, PatternEncoder, ShortEncoder, SimpleTypeEncoder, SocketAddressEncoder, StringEncoder, TimeZoneEncoder, URIEncoder, URLEncoder, UUIDEncoder

public abstract class FixedTypeEncoder<T>
extends SingleEncoder<T>


字段摘要
 
从类 org.test4j.json.encoder.JSONEncoder 继承的字段
clazz, features, ignoreExplicitFieldType, quote_Char, skipNullField, unMarkClassFlag
 
构造方法摘要
protected FixedTypeEncoder(Class clazz)
           
 
方法摘要
 boolean encode(T target, Writer writer, List<String> references)
          将java对象序列化为json字符串
protected abstract  void encodeSingleValue(T target, Writer writer)
           
 
从类 org.test4j.json.encoder.SingleEncoder 继承的方法
isFinalTypeEncoder, isSpecTypeEncoder
 
从类 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
 

构造方法详细信息

FixedTypeEncoder

protected FixedTypeEncoder(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


Copyright © 2013. All rights reserved.