org.test4j.json.encoder.array
类 ArraysEncoder<T>

java.lang.Object
  继承者 org.test4j.json.encoder.JSONEncoder<T>
      继承者 org.test4j.json.encoder.ArrayEncoder<T>
          继承者 org.test4j.json.encoder.array.ArraysEncoder<T>
直接已知子类:
BooleanArrayEncoder, ByteArrayEncoder, CharArrayEncoder, DoubleArrayEncoder, FloatArrayEncoder, IntegerArrayEncoder, LongArrayEncoder, ObjectArrayEncoder, ShortArrayEncoder

public abstract class ArraysEncoder<T>
extends ArrayEncoder<T>


字段摘要
 
从类 org.test4j.json.encoder.JSONEncoder 继承的字段
clazz, features, ignoreExplicitFieldType, quote_Char, skipNullField, unMarkClassFlag
 
构造方法摘要
ArraysEncoder(Class clazz)
           
 
方法摘要
protected  void encodeIterator(T target, Writer writer, List<String> references)
           
protected abstract  int getArraySize(T target)
           
protected abstract  JSONEncoder getEncoderByItem(Object item)
           
protected abstract  Object getItemByIndex(T target, int index)
           
static ArraysEncoder newInstance(Class type)
           
 
从类 org.test4j.json.encoder.ArrayEncoder 继承的方法
encode
 
从类 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
 

构造方法详细信息

ArraysEncoder

public ArraysEncoder(Class clazz)
方法详细信息

encodeIterator

protected void encodeIterator(T target,
                              Writer writer,
                              List<String> references)
                       throws Exception
指定者:
ArrayEncoder<T> 中的 encodeIterator
抛出:
Exception

getArraySize

protected abstract int getArraySize(T target)

getEncoderByItem

protected abstract JSONEncoder getEncoderByItem(Object item)

getItemByIndex

protected abstract Object getItemByIndex(T target,
                                         int index)

newInstance

public static ArraysEncoder newInstance(Class type)


Copyright © 2013. All rights reserved.