cc.plural.jsonij
Class JSONMarshaler

java.lang.Object
  extended by cc.plural.jsonij.JSONMarshaler

public class JSONMarshaler
extends Object

Author:
openecho

Field Summary
protected static JavaMarshaler javaMarshaler
           
protected static JSONDocumentMarshaler jsonMarshaler
           
 
Constructor Summary
JSONMarshaler()
           
 
Method Summary
static Object marshalJSON(JSON json, Class<?> c)
           
static Object marshalJSON(String json, Class<?> c)
           
static Object marshalJSON(Value value, Class<?> c)
           
static JSON marshalObject(boolean[] a)
           
static JSON marshalObject(Boolean[] a)
           
static JSON marshalObject(char[] a)
           
static JSON marshalObject(Character[] a)
           
static JSON marshalObject(double[] a)
           
static JSON marshalObject(Double[] a)
           
static JSON marshalObject(float[] a)
           
static JSON marshalObject(Float[] a)
           
static JSON marshalObject(int[] a)
           
static JSON marshalObject(Integer[] a)
           
static JSON marshalObject(long[] a)
           
static JSON marshalObject(Long[] a)
           
static JSON marshalObject(Object o)
           
static JSON marshalObject(Object[] a)
           
static JSON marshalObject(short[] a)
           
static JSON marshalObject(Short[] a)
           
static JSON marshalObject(String[] a)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

javaMarshaler

protected static final JavaMarshaler javaMarshaler

jsonMarshaler

protected static final JSONDocumentMarshaler jsonMarshaler
Constructor Detail

JSONMarshaler

public JSONMarshaler()
Method Detail

marshalObject

public static JSON marshalObject(Object o)

marshalObject

public static JSON marshalObject(boolean[] a)

marshalObject

public static JSON marshalObject(Boolean[] a)

marshalObject

public static JSON marshalObject(int[] a)

marshalObject

public static JSON marshalObject(Integer[] a)

marshalObject

public static JSON marshalObject(char[] a)

marshalObject

public static JSON marshalObject(Character[] a)

marshalObject

public static JSON marshalObject(double[] a)

marshalObject

public static JSON marshalObject(Double[] a)

marshalObject

public static JSON marshalObject(float[] a)

marshalObject

public static JSON marshalObject(Float[] a)

marshalObject

public static JSON marshalObject(short[] a)

marshalObject

public static JSON marshalObject(Short[] a)

marshalObject

public static JSON marshalObject(long[] a)

marshalObject

public static JSON marshalObject(Long[] a)

marshalObject

public static JSON marshalObject(String[] a)

marshalObject

public static JSON marshalObject(Object[] a)

marshalJSON

public static Object marshalJSON(String json,
                                 Class<?> c)
                          throws JSONMarshalerException,
                                 IOException,
                                 ParserException
Throws:
JSONMarshalerException
IOException
ParserException

marshalJSON

public static Object marshalJSON(JSON json,
                                 Class<?> c)
                          throws JSONMarshalerException
Throws:
JSONMarshalerException

marshalJSON

public static Object marshalJSON(Value value,
                                 Class<?> c)
                          throws JSONMarshalerException
Throws:
JSONMarshalerException


Copyright © 2012. All Rights Reserved.