Package net.minidev.json.writer
Class ArraysMapper<T>
- java.lang.Object
-
- net.minidev.json.writer.JsonReaderI<T>
-
- net.minidev.json.writer.ArraysMapper<T>
-
- Direct Known Subclasses:
ArraysMapper.GenericMapper
public class ArraysMapper<T> extends JsonReaderI<T>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classArraysMapper.GenericMapper<T>
-
Field Summary
Fields Modifier and Type Field Description static JsonReaderI<java.lang.Boolean[]>MAPPER_BOOLstatic JsonReaderI<java.lang.Byte[]>MAPPER_BYTEstatic JsonReaderI<java.lang.Character[]>MAPPER_CHARstatic JsonReaderI<java.lang.Double[]>MAPPER_DOUBLEstatic JsonReaderI<java.lang.Float[]>MAPPER_FLOATstatic JsonReaderI<java.lang.Integer[]>MAPPER_INTstatic JsonReaderI<java.lang.Long[]>MAPPER_LONGstatic JsonReaderI<boolean[]>MAPPER_PRIM_BOOLstatic JsonReaderI<byte[]>MAPPER_PRIM_BYTEstatic JsonReaderI<char[]>MAPPER_PRIM_CHARstatic JsonReaderI<double[]>MAPPER_PRIM_DOUBLEstatic JsonReaderI<float[]>MAPPER_PRIM_FLOATstatic JsonReaderI<int[]>MAPPER_PRIM_INTstatic JsonReaderI<long[]>MAPPER_PRIM_LONGstatic JsonReaderI<short[]>MAPPER_PRIM_SHORTstatic JsonReaderI<java.lang.Short[]>MAPPER_SHORT-
Fields inherited from class net.minidev.json.writer.JsonReaderI
base
-
-
Constructor Summary
Constructors Constructor Description ArraysMapper(JsonReader base)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddValue(java.lang.Object current, java.lang.Object value)add a value in an array json object.Tconvert(java.lang.Object current)Allow a mapper to converte a temprary structure to the final data format.java.lang.ObjectcreateArray()use to instantiate a new object that will be used as an array-
Methods inherited from class net.minidev.json.writer.JsonReaderI
createObject, getType, getValue, setValue, startArray, startObject
-
-
-
-
Field Detail
-
MAPPER_PRIM_INT
public static JsonReaderI<int[]> MAPPER_PRIM_INT
-
MAPPER_INT
public static JsonReaderI<java.lang.Integer[]> MAPPER_INT
-
MAPPER_PRIM_SHORT
public static JsonReaderI<short[]> MAPPER_PRIM_SHORT
-
MAPPER_SHORT
public static JsonReaderI<java.lang.Short[]> MAPPER_SHORT
-
MAPPER_PRIM_BYTE
public static JsonReaderI<byte[]> MAPPER_PRIM_BYTE
-
MAPPER_BYTE
public static JsonReaderI<java.lang.Byte[]> MAPPER_BYTE
-
MAPPER_PRIM_CHAR
public static JsonReaderI<char[]> MAPPER_PRIM_CHAR
-
MAPPER_CHAR
public static JsonReaderI<java.lang.Character[]> MAPPER_CHAR
-
MAPPER_PRIM_LONG
public static JsonReaderI<long[]> MAPPER_PRIM_LONG
-
MAPPER_LONG
public static JsonReaderI<java.lang.Long[]> MAPPER_LONG
-
MAPPER_PRIM_FLOAT
public static JsonReaderI<float[]> MAPPER_PRIM_FLOAT
-
MAPPER_FLOAT
public static JsonReaderI<java.lang.Float[]> MAPPER_FLOAT
-
MAPPER_PRIM_DOUBLE
public static JsonReaderI<double[]> MAPPER_PRIM_DOUBLE
-
MAPPER_DOUBLE
public static JsonReaderI<java.lang.Double[]> MAPPER_DOUBLE
-
MAPPER_PRIM_BOOL
public static JsonReaderI<boolean[]> MAPPER_PRIM_BOOL
-
MAPPER_BOOL
public static JsonReaderI<java.lang.Boolean[]> MAPPER_BOOL
-
-
Constructor Detail
-
ArraysMapper
public ArraysMapper(JsonReader base)
-
-
Method Detail
-
createArray
public java.lang.Object createArray()
Description copied from class:JsonReaderIuse to instantiate a new object that will be used as an array- Overrides:
createArrayin classJsonReaderI<T>
-
addValue
public void addValue(java.lang.Object current, java.lang.Object value)Description copied from class:JsonReaderIadd a value in an array json object.- Overrides:
addValuein classJsonReaderI<T>
-
convert
public T convert(java.lang.Object current)
Description copied from class:JsonReaderIAllow a mapper to converte a temprary structure to the final data format. example: convert an Listto an int[] - Overrides:
convertin classJsonReaderI<T>
-
-