public class Converter
extends java.lang.Object
Constructor and Description |
---|
Converter() |
Modifier and Type | Method and Description |
---|---|
static JSONArray |
Array(boolean[] ab)
Construct a JSON Array out of the Boolean Array
|
static JSONArray |
Array(double[] adbl)
Construct a JSON Array out of the Double Array
|
static JSONArray |
Array(double[][] aadbl)
Construct a JSON 2D Array out of the 2D Double Array
|
static JSONArray |
Array(int[] ai)
Construct a JSON Array out of the Integer Array
|
static JSONArray |
Array(JulianDate[] adt)
Construct a JSON Array out of the JulianDate Array
|
static JSONArray |
Array(java.lang.String[] astr)
Construct a JSON Array out of the String Array
|
static boolean[] |
BooleanArrayEntry(java.lang.Object objJSON)
Convert the JSON Entry to a Boolean Array
|
static boolean |
BooleanEntry(JSONObject json,
java.lang.String strEntryKey)
Convert the JSON Entry to an Boolean
|
static JulianDate[] |
DateArrayEntry(JSONObject json,
java.lang.String strEntryKey)
Convert the JSON Entry to a Date Array
|
static JulianDate |
DateEntry(JSONObject json,
java.lang.String strEntryKey)
Convert the JSON Entry to a Date
|
static double[] |
DoubleArrayEntry(JSONObject json,
java.lang.String strEntryKey)
Convert the JSON Entry to a Double Array
|
static double |
DoubleEntry(JSONObject json,
java.lang.String strEntryKey)
Convert the JSON Entry to a Double
|
static double[][] |
DualDoubleArrayEntry(JSONObject json,
java.lang.String strEntryKey)
Convert the JSON Entry to a Dual Double Array
|
static int[] |
IntegerArrayEntry(java.lang.Object objJSON)
Convert the JSON Entry to an Integer Array
|
static int |
IntegerEntry(JSONObject json,
java.lang.String strEntryKey)
Convert the JSON Entry to an Integer
|
static java.lang.String[] |
StringArrayEntry(JSONObject json,
java.lang.String strEntryKey)
Convert the JSON Entry to a String Array
|
static java.lang.String |
StringEntry(JSONObject json,
java.lang.String strEntryKey)
Convert the JSON Entry to a String
|
public static final java.lang.String StringEntry(JSONObject json, java.lang.String strEntryKey)
json
- The ObjectstrEntryKey
- The Entry Keypublic static final java.lang.String[] StringArrayEntry(JSONObject json, java.lang.String strEntryKey)
json
- The ObjectstrEntryKey
- The Entry Keypublic static final JulianDate DateEntry(JSONObject json, java.lang.String strEntryKey)
json
- The ObjectstrEntryKey
- The Entry Keypublic static final JulianDate[] DateArrayEntry(JSONObject json, java.lang.String strEntryKey)
json
- The ObjectstrEntryKey
- The Entry Keypublic static final double DoubleEntry(JSONObject json, java.lang.String strEntryKey) throws java.lang.Exception
json
- The ObjectstrEntryKey
- The Entry Keyjava.lang.Exception
- Thrown if the Inputs are Invalidpublic static final double[] DoubleArrayEntry(JSONObject json, java.lang.String strEntryKey)
json
- The ObjectstrEntryKey
- The Entry Keypublic static final double[][] DualDoubleArrayEntry(JSONObject json, java.lang.String strEntryKey)
json
- The ObjectstrEntryKey
- The Entry Keypublic static final int IntegerEntry(JSONObject json, java.lang.String strEntryKey) throws java.lang.Exception
json
- The ObjectstrEntryKey
- The Entry Keyjava.lang.Exception
- Thrown if the Inputs are Invalidpublic static final int[] IntegerArrayEntry(java.lang.Object objJSON)
objJSON
- The JSON Objectpublic static final boolean BooleanEntry(JSONObject json, java.lang.String strEntryKey) throws java.lang.Exception
json
- The ObjectstrEntryKey
- The Entry Keyjava.lang.Exception
- Thrown if the Inputs are Invalidpublic static final boolean[] BooleanArrayEntry(java.lang.Object objJSON)
objJSON
- The Objectpublic static final JSONArray Array(java.lang.String[] astr)
astr
- The String Arraypublic static final JSONArray Array(int[] ai)
ai
- The Integer Arraypublic static final JSONArray Array(double[] adbl)
adbl
- The Double Arraypublic static final JSONArray Array(double[][] aadbl)
aadbl
- The 2D Double Arraypublic static final JSONArray Array(boolean[] ab)
ab
- The Boolean Arraypublic static final JSONArray Array(JulianDate[] adt)
adt
- The JulianDate Array