public class CDL
extends java.lang.Object
            | Constructor and Description | 
|---|
CDL() 
                             | 
                        
| Modifier and Type | Method and Description | 
|---|---|
static JSONArray | 
                            rowToJSONArray(JSONTokener x)
                                Produce a JSONArray of strings from a row of comma delimited
                                    values.
                                 
                             | 
                        
static JSONObject | 
                            rowToJSONObject(JSONArray names,
                                JSONTokener x)
                                Produce a JSONObject from a row of comma delimited text, using a
                                    parallel JSONArray of strings to provides the names of the elements.
                                 
                             | 
                        
static java.lang.String | 
                            rowToString(JSONArray ja)
                                Produce a comma delimited text row from a JSONArray. 
                             | 
                        
static JSONArray | 
                            toJSONArray(JSONArray names,
                                JSONTokener x)
                                Produce a JSONArray of JSONObjects from a comma delimited text string
                                    using a supplied JSONArray as the source of element names.
                                 
                             | 
                        
static JSONArray | 
                            toJSONArray(JSONArray names,
                                java.lang.String string)
                                Produce a JSONArray of JSONObjects from a comma delimited text string
                                    using a supplied JSONArray as the source of element names.
                                 
                             | 
                        
static JSONArray | 
                            toJSONArray(JSONTokener x)
                                Produce a JSONArray of JSONObjects from a comma delimited text
                                    string,
                                    using the first row as a source of names.
                                 
                             | 
                        
static JSONArray | 
                            toJSONArray(java.lang.String string)
                                Produce a JSONArray of JSONObjects from a comma delimited text
                                    string,
                                    using the first row as a source of names.
                                 
                             | 
                        
static java.lang.String | 
                            toString(JSONArray ja)
                                Produce a comma delimited text from a JSONArray of JSONObjects. 
                             | 
                        
static java.lang.String | 
                            toString(JSONArray names,
                                JSONArray ja)
                                Produce a comma delimited text from a JSONArray of JSONObjects using
                                    a provided list of names.
                                 
                             | 
                        
public static JSONArray rowToJSONArray(JSONTokener x) throws JSONException
x - A JSONTokener of the source text.JSONException
                                public static JSONObject rowToJSONObject(JSONArray names, JSONTokener x) throws JSONException
names - A JSONArray of names. This is commonly obtained from the
                                    first row of a comma delimited text file using the
                                    rowToJSONArray
                                    method.
                                x - A JSONTokener of the source text.JSONException
                                public static java.lang.String rowToString(JSONArray ja)
ja - A JSONArray of strings.public static JSONArray toJSONArray(java.lang.String string) throws JSONException
string - The comma delimited text.JSONException
                                public static JSONArray toJSONArray(JSONTokener x) throws JSONException
x - The JSONTokener containing the comma delimited text.JSONException
                                public static JSONArray toJSONArray(JSONArray names, java.lang.String string) throws JSONException
names - A JSONArray of strings.string - The comma delimited text.JSONException
                                public static JSONArray toJSONArray(JSONArray names, JSONTokener x) throws JSONException
names - A JSONArray of strings.x - A JSONTokener of the source text.JSONException
                                public static java.lang.String toString(JSONArray ja) throws JSONException
ja - A JSONArray of JSONObjects.JSONException
                                public static java.lang.String toString(JSONArray names, JSONArray ja) throws JSONException
names - A JSONArray of strings.ja - A JSONArray of JSONObjects.JSONException