mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-23 13:46:45 +01:00
635 lines
37 KiB
HTML
635 lines
37 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<!-- NewPage -->
|
|
<html lang="sv">
|
|
<head>
|
|
<!-- Generated by javadoc (version 1.7.0_67) on Sun Nov 16 11:09:54 CET 2014 -->
|
|
<title>CDL</title>
|
|
<meta name="date" content="2014-11-16">
|
|
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
|
|
</head>
|
|
<body>
|
|
<script type="text/javascript"><!--
|
|
if (location.href.indexOf('is-external=true') == -1) {
|
|
parent.document.title = "CDL";
|
|
}
|
|
//-->
|
|
</script>
|
|
<noscript>
|
|
<div>JavaScript is disabled on your browser.</div>
|
|
</noscript>
|
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
|
<div class="topNav"><a name="navbar_top">
|
|
<!-- -->
|
|
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="navList" title="Navigation">
|
|
<li><a href="../../../overview-summary.html">Overview</a></li>
|
|
<li><a href="package-summary.html">Package</a></li>
|
|
<li class="navBarCell1Rev">Class</li>
|
|
<li><a href="package-tree.html">Tree</a></li>
|
|
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
|
|
<li><a href="../../../index-files/index-1.html">Index</a></li>
|
|
<li><a href="../../../help-doc.html">Help</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="subNav">
|
|
<ul class="navList">
|
|
<li>Prev Class</li>
|
|
<li><a href="../../../com/intellectualcrafters/json/Cookie.html" title="class in com.intellectualcrafters.json"><span
|
|
class="strong">Next Class</span></a></li>
|
|
</ul>
|
|
<ul class="navList">
|
|
<li><a href="../../../index.html?com/intellectualcrafters/json/CDL.html" target="_top">Frames</a></li>
|
|
<li><a href="CDL.html" target="_top">No Frames</a></li>
|
|
</ul>
|
|
<ul class="navList" id="allclasses_navbar_top">
|
|
<li><a href="../../../allclasses-noframe.html">All Classes</a></li>
|
|
</ul>
|
|
<div>
|
|
<script type="text/javascript"><!--
|
|
allClassesLink = document.getElementById("allclasses_navbar_top");
|
|
if (window == top) {
|
|
allClassesLink.style.display = "block";
|
|
}
|
|
else {
|
|
allClassesLink.style.display = "none";
|
|
}
|
|
//-->
|
|
</script>
|
|
</div>
|
|
<div>
|
|
<ul class="subNavList">
|
|
<li>Summary: </li>
|
|
<li>Nested | </li>
|
|
<li>Field | </li>
|
|
<li><a href="#constructor_summary">Constr</a> | </li>
|
|
<li><a href="#method_summary">Method</a></li>
|
|
</ul>
|
|
<ul class="subNavList">
|
|
<li>Detail: </li>
|
|
<li>Field | </li>
|
|
<li><a href="#constructor_detail">Constr</a> | </li>
|
|
<li><a href="#method_detail">Method</a></li>
|
|
</ul>
|
|
</div>
|
|
<a name="skip-navbar_top">
|
|
<!-- -->
|
|
</a></div>
|
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
|
<!-- ======== START OF CLASS DATA ======== -->
|
|
<div class="header">
|
|
<div class="subTitle">com.intellectualcrafters.json</div>
|
|
<h2 title="Class CDL" class="title">Class CDL</h2>
|
|
</div>
|
|
<div class="contentContainer">
|
|
<ul class="inheritance">
|
|
<li>java.lang.Object</li>
|
|
<li>
|
|
<ul class="inheritance">
|
|
<li>com.intellectualcrafters.json.CDL</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<div class="description">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<hr>
|
|
<br>
|
|
<pre>public class <span class="strong">CDL</span>
|
|
extends java.lang.Object</pre>
|
|
<div class="block">This provides static methods to convert comma delimited text into a
|
|
JSONArray, and to covert a JSONArray into comma delimited text. Comma
|
|
delimited text is a very popular format for data interchange. It is
|
|
understood by most database, spreadsheet, and organizer programs.
|
|
<p/>
|
|
Each row of text represents a row in a table or a data record. Each row ends
|
|
with a NEWLINE character. Each row contains one or more values. Values are
|
|
separated by commas. A value can contain any character except for comma,
|
|
unless is is wrapped in single quotes or double quotes.
|
|
<p/>
|
|
The first row usually contains the names of the columns.
|
|
<p/>
|
|
A comma delimited list can be converted into a JSONArray of JSONObjects. The
|
|
names for the elements in the JSONObjects can be taken from the names in the
|
|
first row.
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="summary">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="constructor_summary">
|
|
<!-- -->
|
|
</a>
|
|
|
|
<h3>Constructor Summary</h3>
|
|
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0"
|
|
summary="Constructor Summary table, listing constructors, and an explanation">
|
|
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
|
|
<tr>
|
|
<th class="colOne" scope="col">Constructor and Description</th>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colOne"><code><strong><a
|
|
href="../../../com/intellectualcrafters/json/CDL.html#CDL()">CDL</a></strong>()</code>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</li>
|
|
</ul>
|
|
<!-- ========== METHOD SUMMARY =========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="method_summary">
|
|
<!-- -->
|
|
</a>
|
|
|
|
<h3>Method Summary</h3>
|
|
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0"
|
|
summary="Method Summary table, listing methods, and an explanation">
|
|
<caption><span>Methods</span><span class="tabEnd"> </span></caption>
|
|
<tr>
|
|
<th class="colFirst" scope="col">Modifier and Type</th>
|
|
<th class="colLast" scope="col">Method and Description</th>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static <a
|
|
href="../../../com/intellectualcrafters/json/JSONArray.html"
|
|
title="class in com.intellectualcrafters.json">JSONArray</a></code></td>
|
|
<td class="colLast"><code><strong><a
|
|
href="../../../com/intellectualcrafters/json/CDL.html#rowToJSONArray(com.intellectualcrafters.json.JSONTokener)">rowToJSONArray</a></strong>(<a
|
|
href="../../../com/intellectualcrafters/json/JSONTokener.html"
|
|
title="class in com.intellectualcrafters.json">JSONTokener</a> x)</code>
|
|
|
|
<div class="block">Produce a JSONArray of strings from a row of comma delimited
|
|
values.
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static <a
|
|
href="../../../com/intellectualcrafters/json/JSONObject.html"
|
|
title="class in com.intellectualcrafters.json">JSONObject</a></code></td>
|
|
<td class="colLast"><code><strong><a
|
|
href="../../../com/intellectualcrafters/json/CDL.html#rowToJSONObject(com.intellectualcrafters.json.JSONArray,%20com.intellectualcrafters.json.JSONTokener)">rowToJSONObject</a></strong>(<a
|
|
href="../../../com/intellectualcrafters/json/JSONArray.html"
|
|
title="class in com.intellectualcrafters.json">JSONArray</a> names,
|
|
<a href="../../../com/intellectualcrafters/json/JSONTokener.html"
|
|
title="class in com.intellectualcrafters.json">JSONTokener</a> x)</code>
|
|
|
|
<div class="block">Produce a JSONObject from a row of comma delimited text, using a
|
|
parallel JSONArray of strings to provides the names of the elements.
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static java.lang.String</code></td>
|
|
<td class="colLast"><code><strong><a
|
|
href="../../../com/intellectualcrafters/json/CDL.html#rowToString(com.intellectualcrafters.json.JSONArray)">rowToString</a></strong>(<a
|
|
href="../../../com/intellectualcrafters/json/JSONArray.html"
|
|
title="class in com.intellectualcrafters.json">JSONArray</a> ja)</code>
|
|
|
|
<div class="block">Produce a comma delimited text row from a JSONArray.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static <a
|
|
href="../../../com/intellectualcrafters/json/JSONArray.html"
|
|
title="class in com.intellectualcrafters.json">JSONArray</a></code></td>
|
|
<td class="colLast"><code><strong><a
|
|
href="../../../com/intellectualcrafters/json/CDL.html#toJSONArray(com.intellectualcrafters.json.JSONArray,%20com.intellectualcrafters.json.JSONTokener)">toJSONArray</a></strong>(<a
|
|
href="../../../com/intellectualcrafters/json/JSONArray.html"
|
|
title="class in com.intellectualcrafters.json">JSONArray</a> names,
|
|
<a href="../../../com/intellectualcrafters/json/JSONTokener.html"
|
|
title="class in com.intellectualcrafters.json">JSONTokener</a> x)</code>
|
|
|
|
<div class="block">Produce a JSONArray of JSONObjects from a comma delimited text string
|
|
using a supplied JSONArray as the source of element names.
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static <a
|
|
href="../../../com/intellectualcrafters/json/JSONArray.html"
|
|
title="class in com.intellectualcrafters.json">JSONArray</a></code></td>
|
|
<td class="colLast"><code><strong><a
|
|
href="../../../com/intellectualcrafters/json/CDL.html#toJSONArray(com.intellectualcrafters.json.JSONArray,%20java.lang.String)">toJSONArray</a></strong>(<a
|
|
href="../../../com/intellectualcrafters/json/JSONArray.html"
|
|
title="class in com.intellectualcrafters.json">JSONArray</a> names,
|
|
java.lang.String string)</code>
|
|
|
|
<div class="block">Produce a JSONArray of JSONObjects from a comma delimited text string
|
|
using a supplied JSONArray as the source of element names.
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static <a
|
|
href="../../../com/intellectualcrafters/json/JSONArray.html"
|
|
title="class in com.intellectualcrafters.json">JSONArray</a></code></td>
|
|
<td class="colLast"><code><strong><a
|
|
href="../../../com/intellectualcrafters/json/CDL.html#toJSONArray(com.intellectualcrafters.json.JSONTokener)">toJSONArray</a></strong>(<a
|
|
href="../../../com/intellectualcrafters/json/JSONTokener.html"
|
|
title="class in com.intellectualcrafters.json">JSONTokener</a> x)</code>
|
|
|
|
<div class="block">Produce a JSONArray of JSONObjects from a comma delimited text
|
|
string,
|
|
using the first row as a source of names.
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static <a
|
|
href="../../../com/intellectualcrafters/json/JSONArray.html"
|
|
title="class in com.intellectualcrafters.json">JSONArray</a></code></td>
|
|
<td class="colLast"><code><strong><a
|
|
href="../../../com/intellectualcrafters/json/CDL.html#toJSONArray(java.lang.String)">toJSONArray</a></strong>(java.lang.String string)</code>
|
|
|
|
<div class="block">Produce a JSONArray of JSONObjects from a comma delimited text
|
|
string,
|
|
using the first row as a source of names.
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static java.lang.String</code></td>
|
|
<td class="colLast"><code><strong><a
|
|
href="../../../com/intellectualcrafters/json/CDL.html#toString(com.intellectualcrafters.json.JSONArray)">toString</a></strong>(<a
|
|
href="../../../com/intellectualcrafters/json/JSONArray.html"
|
|
title="class in com.intellectualcrafters.json">JSONArray</a> ja)</code>
|
|
|
|
<div class="block">Produce a comma delimited text from a JSONArray of JSONObjects.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static java.lang.String</code></td>
|
|
<td class="colLast"><code><strong><a
|
|
href="../../../com/intellectualcrafters/json/CDL.html#toString(com.intellectualcrafters.json.JSONArray,%20com.intellectualcrafters.json.JSONArray)">toString</a></strong>(<a
|
|
href="../../../com/intellectualcrafters/json/JSONArray.html"
|
|
title="class in com.intellectualcrafters.json">JSONArray</a> names,
|
|
<a href="../../../com/intellectualcrafters/json/JSONArray.html"
|
|
title="class in com.intellectualcrafters.json">JSONArray</a> ja)</code>
|
|
|
|
<div class="block">Produce a comma delimited text from a JSONArray of JSONObjects using
|
|
a provided list of names.
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
|
|
<!-- -->
|
|
</a>
|
|
|
|
<h3>Methods inherited from class java.lang.Object</h3>
|
|
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait,
|
|
wait</code></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="details">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="constructor_detail">
|
|
<!-- -->
|
|
</a>
|
|
|
|
<h3>Constructor Detail</h3>
|
|
<a name="CDL()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>CDL</h4>
|
|
<pre>public CDL()</pre>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<!-- ============ METHOD DETAIL ========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="method_detail">
|
|
<!-- -->
|
|
</a>
|
|
|
|
<h3>Method Detail</h3>
|
|
<a name="rowToJSONArray(com.intellectualcrafters.json.JSONTokener)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>rowToJSONArray</h4>
|
|
<pre>public static <a href="../../../com/intellectualcrafters/json/JSONArray.html"
|
|
title="class in com.intellectualcrafters.json">JSONArray</a> rowToJSONArray(<a
|
|
href="../../../com/intellectualcrafters/json/JSONTokener.html" title="class in com.intellectualcrafters.json">JSONTokener</a> x)
|
|
throws <a href="../../../com/intellectualcrafters/json/JSONException.html"
|
|
title="class in com.intellectualcrafters.json">JSONException</a></pre>
|
|
<div class="block">Produce a JSONArray of strings from a row of comma delimited values.
|
|
</div>
|
|
<dl>
|
|
<dt><span class="strong">Parameters:</span></dt>
|
|
<dd><code>x</code> - A JSONTokener of the source text.</dd>
|
|
<dt><span class="strong">Returns:</span></dt>
|
|
<dd>A JSONArray of strings.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="../../../com/intellectualcrafters/json/JSONException.html"
|
|
title="class in com.intellectualcrafters.json">JSONException</a></code>
|
|
</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="rowToJSONObject(com.intellectualcrafters.json.JSONArray, com.intellectualcrafters.json.JSONTokener)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>rowToJSONObject</h4>
|
|
<pre>public static <a href="../../../com/intellectualcrafters/json/JSONObject.html"
|
|
title="class in com.intellectualcrafters.json">JSONObject</a> rowToJSONObject(<a
|
|
href="../../../com/intellectualcrafters/json/JSONArray.html" title="class in com.intellectualcrafters.json">JSONArray</a> names,
|
|
<a href="../../../com/intellectualcrafters/json/JSONTokener.html"
|
|
title="class in com.intellectualcrafters.json">JSONTokener</a> x)
|
|
throws <a href="../../../com/intellectualcrafters/json/JSONException.html"
|
|
title="class in com.intellectualcrafters.json">JSONException</a></pre>
|
|
<div class="block">Produce a JSONObject from a row of comma delimited text, using a
|
|
parallel JSONArray of strings to provides the names of the elements.
|
|
</div>
|
|
<dl>
|
|
<dt><span class="strong">Parameters:</span></dt>
|
|
<dd><code>names</code> - A JSONArray of names. This is commonly obtained from the
|
|
first row of a comma delimited text file using the
|
|
rowToJSONArray
|
|
method.
|
|
</dd>
|
|
<dd><code>x</code> - A JSONTokener of the source text.</dd>
|
|
<dt><span class="strong">Returns:</span></dt>
|
|
<dd>A JSONObject combining the names and values.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="../../../com/intellectualcrafters/json/JSONException.html"
|
|
title="class in com.intellectualcrafters.json">JSONException</a></code>
|
|
</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="rowToString(com.intellectualcrafters.json.JSONArray)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>rowToString</h4>
|
|
<pre>public static java.lang.String rowToString(<a
|
|
href="../../../com/intellectualcrafters/json/JSONArray.html"
|
|
title="class in com.intellectualcrafters.json">JSONArray</a> ja)</pre>
|
|
<div class="block">Produce a comma delimited text row from a JSONArray. Values containing
|
|
the comma character will be quoted. Troublesome characters may be
|
|
removed.
|
|
</div>
|
|
<dl>
|
|
<dt><span class="strong">Parameters:</span></dt>
|
|
<dd><code>ja</code> - A JSONArray of strings.</dd>
|
|
<dt><span class="strong">Returns:</span></dt>
|
|
<dd>A string ending in NEWLINE.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="toJSONArray(java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>toJSONArray</h4>
|
|
<pre>public static <a href="../../../com/intellectualcrafters/json/JSONArray.html"
|
|
title="class in com.intellectualcrafters.json">JSONArray</a> toJSONArray(java.lang.String string)
|
|
throws <a href="../../../com/intellectualcrafters/json/JSONException.html"
|
|
title="class in com.intellectualcrafters.json">JSONException</a></pre>
|
|
<div class="block">Produce a JSONArray of JSONObjects from a comma delimited text string,
|
|
using the first row as a source of names.
|
|
</div>
|
|
<dl>
|
|
<dt><span class="strong">Parameters:</span></dt>
|
|
<dd><code>string</code> - The comma delimited text.</dd>
|
|
<dt><span class="strong">Returns:</span></dt>
|
|
<dd>A JSONArray of JSONObjects.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="../../../com/intellectualcrafters/json/JSONException.html"
|
|
title="class in com.intellectualcrafters.json">JSONException</a></code>
|
|
</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="toJSONArray(com.intellectualcrafters.json.JSONTokener)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>toJSONArray</h4>
|
|
<pre>public static <a href="../../../com/intellectualcrafters/json/JSONArray.html"
|
|
title="class in com.intellectualcrafters.json">JSONArray</a> toJSONArray(<a
|
|
href="../../../com/intellectualcrafters/json/JSONTokener.html" title="class in com.intellectualcrafters.json">JSONTokener</a> x)
|
|
throws <a href="../../../com/intellectualcrafters/json/JSONException.html"
|
|
title="class in com.intellectualcrafters.json">JSONException</a></pre>
|
|
<div class="block">Produce a JSONArray of JSONObjects from a comma delimited text string,
|
|
using the first row as a source of names.
|
|
</div>
|
|
<dl>
|
|
<dt><span class="strong">Parameters:</span></dt>
|
|
<dd><code>x</code> - The JSONTokener containing the comma delimited text.</dd>
|
|
<dt><span class="strong">Returns:</span></dt>
|
|
<dd>A JSONArray of JSONObjects.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="../../../com/intellectualcrafters/json/JSONException.html"
|
|
title="class in com.intellectualcrafters.json">JSONException</a></code>
|
|
</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="toJSONArray(com.intellectualcrafters.json.JSONArray, java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>toJSONArray</h4>
|
|
<pre>public static <a href="../../../com/intellectualcrafters/json/JSONArray.html"
|
|
title="class in com.intellectualcrafters.json">JSONArray</a> toJSONArray(<a
|
|
href="../../../com/intellectualcrafters/json/JSONArray.html" title="class in com.intellectualcrafters.json">JSONArray</a> names,
|
|
java.lang.String string)
|
|
throws <a href="../../../com/intellectualcrafters/json/JSONException.html"
|
|
title="class in com.intellectualcrafters.json">JSONException</a></pre>
|
|
<div class="block">Produce a JSONArray of JSONObjects from a comma delimited text string
|
|
using a supplied JSONArray as the source of element names.
|
|
</div>
|
|
<dl>
|
|
<dt><span class="strong">Parameters:</span></dt>
|
|
<dd><code>names</code> - A JSONArray of strings.</dd>
|
|
<dd><code>string</code> - The comma delimited text.</dd>
|
|
<dt><span class="strong">Returns:</span></dt>
|
|
<dd>A JSONArray of JSONObjects.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="../../../com/intellectualcrafters/json/JSONException.html"
|
|
title="class in com.intellectualcrafters.json">JSONException</a></code>
|
|
</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="toJSONArray(com.intellectualcrafters.json.JSONArray, com.intellectualcrafters.json.JSONTokener)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>toJSONArray</h4>
|
|
<pre>public static <a href="../../../com/intellectualcrafters/json/JSONArray.html"
|
|
title="class in com.intellectualcrafters.json">JSONArray</a> toJSONArray(<a
|
|
href="../../../com/intellectualcrafters/json/JSONArray.html" title="class in com.intellectualcrafters.json">JSONArray</a> names,
|
|
<a href="../../../com/intellectualcrafters/json/JSONTokener.html"
|
|
title="class in com.intellectualcrafters.json">JSONTokener</a> x)
|
|
throws <a href="../../../com/intellectualcrafters/json/JSONException.html"
|
|
title="class in com.intellectualcrafters.json">JSONException</a></pre>
|
|
<div class="block">Produce a JSONArray of JSONObjects from a comma delimited text string
|
|
using a supplied JSONArray as the source of element names.
|
|
</div>
|
|
<dl>
|
|
<dt><span class="strong">Parameters:</span></dt>
|
|
<dd><code>names</code> - A JSONArray of strings.</dd>
|
|
<dd><code>x</code> - A JSONTokener of the source text.</dd>
|
|
<dt><span class="strong">Returns:</span></dt>
|
|
<dd>A JSONArray of JSONObjects.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="../../../com/intellectualcrafters/json/JSONException.html"
|
|
title="class in com.intellectualcrafters.json">JSONException</a></code>
|
|
</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="toString(com.intellectualcrafters.json.JSONArray)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>toString</h4>
|
|
<pre>public static java.lang.String toString(<a href="../../../com/intellectualcrafters/json/JSONArray.html"
|
|
title="class in com.intellectualcrafters.json">JSONArray</a> ja)
|
|
throws <a href="../../../com/intellectualcrafters/json/JSONException.html"
|
|
title="class in com.intellectualcrafters.json">JSONException</a></pre>
|
|
<div class="block">Produce a comma delimited text from a JSONArray of JSONObjects. The
|
|
first row will be a list of names obtained by inspecting the first
|
|
JSONObject.
|
|
</div>
|
|
<dl>
|
|
<dt><span class="strong">Parameters:</span></dt>
|
|
<dd><code>ja</code> - A JSONArray of JSONObjects.</dd>
|
|
<dt><span class="strong">Returns:</span></dt>
|
|
<dd>A comma delimited text.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="../../../com/intellectualcrafters/json/JSONException.html"
|
|
title="class in com.intellectualcrafters.json">JSONException</a></code>
|
|
</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="toString(com.intellectualcrafters.json.JSONArray, com.intellectualcrafters.json.JSONArray)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>toString</h4>
|
|
<pre>public static java.lang.String toString(<a href="../../../com/intellectualcrafters/json/JSONArray.html"
|
|
title="class in com.intellectualcrafters.json">JSONArray</a> names,
|
|
<a href="../../../com/intellectualcrafters/json/JSONArray.html"
|
|
title="class in com.intellectualcrafters.json">JSONArray</a> ja)
|
|
throws <a href="../../../com/intellectualcrafters/json/JSONException.html"
|
|
title="class in com.intellectualcrafters.json">JSONException</a></pre>
|
|
<div class="block">Produce a comma delimited text from a JSONArray of JSONObjects using
|
|
a provided list of names. The list of names is not included in the
|
|
output.
|
|
</div>
|
|
<dl>
|
|
<dt><span class="strong">Parameters:</span></dt>
|
|
<dd><code>names</code> - A JSONArray of strings.</dd>
|
|
<dd><code>ja</code> - A JSONArray of JSONObjects.</dd>
|
|
<dt><span class="strong">Returns:</span></dt>
|
|
<dd>A comma delimited text.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="../../../com/intellectualcrafters/json/JSONException.html"
|
|
title="class in com.intellectualcrafters.json">JSONException</a></code>
|
|
</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<!-- ========= END OF CLASS DATA ========= -->
|
|
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
|
<div class="bottomNav"><a name="navbar_bottom">
|
|
<!-- -->
|
|
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="navList" title="Navigation">
|
|
<li><a href="../../../overview-summary.html">Overview</a></li>
|
|
<li><a href="package-summary.html">Package</a></li>
|
|
<li class="navBarCell1Rev">Class</li>
|
|
<li><a href="package-tree.html">Tree</a></li>
|
|
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
|
|
<li><a href="../../../index-files/index-1.html">Index</a></li>
|
|
<li><a href="../../../help-doc.html">Help</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="subNav">
|
|
<ul class="navList">
|
|
<li>Prev Class</li>
|
|
<li><a href="../../../com/intellectualcrafters/json/Cookie.html" title="class in com.intellectualcrafters.json"><span
|
|
class="strong">Next Class</span></a></li>
|
|
</ul>
|
|
<ul class="navList">
|
|
<li><a href="../../../index.html?com/intellectualcrafters/json/CDL.html" target="_top">Frames</a></li>
|
|
<li><a href="CDL.html" target="_top">No Frames</a></li>
|
|
</ul>
|
|
<ul class="navList" id="allclasses_navbar_bottom">
|
|
<li><a href="../../../allclasses-noframe.html">All Classes</a></li>
|
|
</ul>
|
|
<div>
|
|
<script type="text/javascript"><!--
|
|
allClassesLink = document.getElementById("allclasses_navbar_bottom");
|
|
if (window == top) {
|
|
allClassesLink.style.display = "block";
|
|
}
|
|
else {
|
|
allClassesLink.style.display = "none";
|
|
}
|
|
//-->
|
|
</script>
|
|
</div>
|
|
<div>
|
|
<ul class="subNavList">
|
|
<li>Summary: </li>
|
|
<li>Nested | </li>
|
|
<li>Field | </li>
|
|
<li><a href="#constructor_summary">Constr</a> | </li>
|
|
<li><a href="#method_summary">Method</a></li>
|
|
</ul>
|
|
<ul class="subNavList">
|
|
<li>Detail: </li>
|
|
<li>Field | </li>
|
|
<li><a href="#constructor_detail">Constr</a> | </li>
|
|
<li><a href="#method_detail">Method</a></li>
|
|
</ul>
|
|
</div>
|
|
<a name="skip-navbar_bottom">
|
|
<!-- -->
|
|
</a></div>
|
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
|
</body>
|
|
</html>
|