public class JSON2FmModel
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
bufferSize |
static int |
JSON_ARRAY |
static int |
JSON_BOOLEAN |
static int |
JSON_MAP |
static int |
JSON_NULL |
static int |
JSON_NUMBER |
static int |
JSON_STRING |
static int |
JSON_UNKNOWN |
Modifier and Type | Method and Description |
---|---|
static boolean |
containsKey(java.util.List pl,
java.lang.String keyPath)
returns true if the keyPath exists or false otherwise
|
static boolean |
containsKey(java.util.Map ph,
java.lang.String keyPath)
returns true if the keyPath exists or false otherwise
|
static int |
count(java.util.List pl,
java.lang.String keyPath)
returns the number of children referenced by the keyPath or -1
|
static int |
count(java.util.Map ph,
java.lang.String keyPath)
returns the number of children referenced by the keyPath or -1
|
static java.lang.String |
format(java.util.List pl,
Template temp)
returns the formatted string for the given template or null on faluire
|
static java.lang.String |
format(java.util.Map ph,
Template temp)
returns the formatted string for the given template or null on faluire
|
static java.lang.Object |
get(java.util.List pl,
java.lang.String keyPath)
returns the object referenced by the keyPath or null
|
static java.lang.Object |
get(java.util.Map ph,
java.lang.String keyPath)
returns the object referenced by the keyPath or null
|
static int |
getDataType(java.util.List pl,
java.lang.String keyPath) |
static int |
getDataType(java.util.Map ph,
java.lang.String keyPath) |
static java.lang.Object |
getParent(java.util.List pl,
java.lang.String keyPath)
returns the parent of the object referenced by the keyPath or null
|
static java.lang.Object |
getParent(java.util.Map ph,
java.lang.String keyPath)
returns the parent of the object referenced by the keyPath or null
|
static void |
main(java.lang.String[] args) |
static java.lang.Object |
parse(java.io.Reader in)
parses JSON stream from in and returns either Map or List, MT-safe
|
static java.lang.Object |
put(java.util.List pl,
java.lang.String keyPath,
java.lang.Object data)
puts the data and returns the replaced object referenced by the keyPath
|
static java.lang.Object |
put(java.util.Map ph,
java.lang.String keyPath,
java.lang.Object data)
puts the data and returns the replaced object referenced by the keyPath
|
static java.lang.Object |
remove(java.util.List pl,
java.lang.String keyPath)
returns the removed object referenced by the keyPath or null
|
static java.lang.Object |
remove(java.util.Map ph,
java.lang.String keyPath)
returns the removed object referenced by the keyPath or null
|
static java.lang.String |
toJSON(java.util.List a,
java.lang.String indent,
java.lang.String end)
It returns JSON content for a given List with indent
|
static java.lang.String |
toJSON(java.util.Map m)
It returns JSON content in tabular format for a given Map
|
static java.lang.String |
toJSON(java.util.Map m,
java.lang.String indent,
java.lang.String end)
It returns JSON content for a given Map with indent
|
static java.lang.String |
toXML(java.util.Map m)
It returns XML content in the tabular format for a given Map
|
static java.lang.String |
toXML(java.util.Map m,
java.lang.String indent,
java.lang.String end)
It returns XML content for a given Map with indent
|
static java.lang.String |
toXML(java.lang.String key,
java.util.List a,
java.lang.String indent,
java.lang.String end)
It returns XML content for a given List with indent
|
public static final int bufferSize
public static final int JSON_UNKNOWN
public static final int JSON_NULL
public static final int JSON_STRING
public static final int JSON_NUMBER
public static final int JSON_BOOLEAN
public static final int JSON_ARRAY
public static final int JSON_MAP
public static java.lang.String toJSON(java.util.Map m)
public static java.lang.String toJSON(java.util.Map m, java.lang.String indent, java.lang.String end)
public static java.lang.String toJSON(java.util.List a, java.lang.String indent, java.lang.String end)
public static java.lang.String toXML(java.util.Map m)
public static java.lang.String toXML(java.util.Map m, java.lang.String indent, java.lang.String end)
public static java.lang.String toXML(java.lang.String key, java.util.List a, java.lang.String indent, java.lang.String end)
public static boolean containsKey(java.util.Map ph, java.lang.String keyPath)
public static boolean containsKey(java.util.List pl, java.lang.String keyPath)
public static int count(java.util.Map ph, java.lang.String keyPath)
public static int count(java.util.List pl, java.lang.String keyPath)
public static java.lang.Object remove(java.util.Map ph, java.lang.String keyPath)
public static java.lang.Object remove(java.util.List pl, java.lang.String keyPath)
public static java.lang.Object getParent(java.util.Map ph, java.lang.String keyPath)
public static java.lang.Object getParent(java.util.List pl, java.lang.String keyPath)
public static java.lang.Object get(java.util.Map ph, java.lang.String keyPath)
public static java.lang.Object get(java.util.List pl, java.lang.String keyPath)
public static int getDataType(java.util.Map ph, java.lang.String keyPath)
public static int getDataType(java.util.List pl, java.lang.String keyPath)
public static java.lang.Object put(java.util.Map ph, java.lang.String keyPath, java.lang.Object data)
public static java.lang.Object put(java.util.List pl, java.lang.String keyPath, java.lang.Object data)
public static java.lang.String format(java.util.Map ph, Template temp)
public static java.lang.String format(java.util.List pl, Template temp)
public static java.lang.Object parse(java.io.Reader in) throws java.io.IOException
java.io.IOException
public static void main(java.lang.String[] args)