mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-06-26 02:34:42 +02:00
Moved folder
This commit is contained in:
634
doc/com/intellectualcrafters/json/CDL.html
Normal file
634
doc/com/intellectualcrafters/json/CDL.html
Normal file
@ -0,0 +1,634 @@
|
||||
<!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>
|
410
doc/com/intellectualcrafters/json/Cookie.html
Normal file
410
doc/com/intellectualcrafters/json/Cookie.html
Normal file
@ -0,0 +1,410 @@
|
||||
<!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>Cookie</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 = "Cookie";
|
||||
}
|
||||
//-->
|
||||
</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><a href="../../../com/intellectualcrafters/json/CDL.html"
|
||||
title="class in com.intellectualcrafters.json"><span class="strong">Prev Class</span></a></li>
|
||||
<li><a href="../../../com/intellectualcrafters/json/CookieList.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/Cookie.html" target="_top">Frames</a></li>
|
||||
<li><a href="Cookie.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 Cookie" class="title">Class Cookie</h2>
|
||||
</div>
|
||||
<div class="contentContainer">
|
||||
<ul class="inheritance">
|
||||
<li>java.lang.Object</li>
|
||||
<li>
|
||||
<ul class="inheritance">
|
||||
<li>com.intellectualcrafters.json.Cookie</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="description">
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<hr>
|
||||
<br>
|
||||
<pre>public class <span class="strong">Cookie</span>
|
||||
extends java.lang.Object</pre>
|
||||
<div class="block">Convert a web browser cookie specification to a JSONObject and back.
|
||||
JSON and Cookies are both notations for name/value pairs.
|
||||
</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/Cookie.html#Cookie()">Cookie</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 java.lang.String</code></td>
|
||||
<td class="colLast"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/Cookie.html#escape(java.lang.String)">escape</a></strong>(java.lang.String string)</code>
|
||||
|
||||
<div class="block">Produce a copy of a string in which the characters '+', '%', '=',
|
||||
';'
|
||||
and control characters are replaced with "%hh".
|
||||
</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/Cookie.html#toJSONObject(java.lang.String)">toJSONObject</a></strong>(java.lang.String string)</code>
|
||||
|
||||
<div class="block">Convert a cookie specification string into a JSONObject.</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/Cookie.html#toString(com.intellectualcrafters.json.JSONObject)">toString</a></strong>(<a
|
||||
href="../../../com/intellectualcrafters/json/JSONObject.html"
|
||||
title="class in com.intellectualcrafters.json">JSONObject</a> jo)</code>
|
||||
|
||||
<div class="block">Convert a JSONObject into a cookie specification string.</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/Cookie.html#unescape(java.lang.String)">unescape</a></strong>(java.lang.String string)</code>
|
||||
|
||||
<div class="block">Convert <code>%</code><i>hh</i> sequences to single characters,
|
||||
and
|
||||
convert plus to space.
|
||||
</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="Cookie()">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockListLast">
|
||||
<li class="blockList">
|
||||
<h4>Cookie</h4>
|
||||
<pre>public Cookie()</pre>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- ============ METHOD DETAIL ========== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="method_detail">
|
||||
<!-- -->
|
||||
</a>
|
||||
|
||||
<h3>Method Detail</h3>
|
||||
<a name="escape(java.lang.String)">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>escape</h4>
|
||||
<pre>public static java.lang.String escape(java.lang.String string)</pre>
|
||||
<div class="block">Produce a copy of a string in which the characters '+', '%', '=', ';'
|
||||
and control characters are replaced with "%hh". This is a gentle form
|
||||
of URL encoding, attempting to cause as little distortion to the
|
||||
string as possible. The characters '=' and ';' are meta characters in
|
||||
cookies. By convention, they are escaped using the URL-encoding. This is
|
||||
only a convention, not a standard. Often, cookies are expected to have
|
||||
encoded values. We encode '=' and ';' because we must. We encode '%' and
|
||||
'+' because they are meta characters in URL encoding.
|
||||
</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Parameters:</span></dt>
|
||||
<dd><code>string</code> - The source string.</dd>
|
||||
<dt><span class="strong">Returns:</span></dt>
|
||||
<dd>The escaped result.</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="toJSONObject(java.lang.String)">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>toJSONObject</h4>
|
||||
<pre>public static <a href="../../../com/intellectualcrafters/json/JSONObject.html"
|
||||
title="class in com.intellectualcrafters.json">JSONObject</a> toJSONObject(java.lang.String string)
|
||||
throws <a href="../../../com/intellectualcrafters/json/JSONException.html"
|
||||
title="class in com.intellectualcrafters.json">JSONException</a></pre>
|
||||
<div class="block">Convert a cookie specification string into a JSONObject. The string
|
||||
will contain a name value pair separated by '='. The name and the value
|
||||
will be unescaped, possibly converting '+' and '%' sequences. The
|
||||
cookie properties may follow, separated by ';', also represented as
|
||||
name=value (except the secure property, which does not have a value).
|
||||
The name will be stored under the key "name", and the value will be
|
||||
stored under the key "value". This method does not do checking or
|
||||
validation of the parameters. It only converts the cookie string into
|
||||
a JSONObject.
|
||||
</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Parameters:</span></dt>
|
||||
<dd><code>string</code> - The cookie specification string.</dd>
|
||||
<dt><span class="strong">Returns:</span></dt>
|
||||
<dd>A JSONObject containing "name", "value", and possibly other
|
||||
members.
|
||||
</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.JSONObject)">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>toString</h4>
|
||||
<pre>public static java.lang.String toString(<a href="../../../com/intellectualcrafters/json/JSONObject.html"
|
||||
title="class in com.intellectualcrafters.json">JSONObject</a> jo)
|
||||
throws <a href="../../../com/intellectualcrafters/json/JSONException.html"
|
||||
title="class in com.intellectualcrafters.json">JSONException</a></pre>
|
||||
<div class="block">Convert a JSONObject into a cookie specification string. The
|
||||
JSONObject
|
||||
must contain "name" and "value" members.
|
||||
If the JSONObject contains "expires", "domain", "path", or "secure"
|
||||
members, they will be appended to the cookie specification string.
|
||||
All other members are ignored.
|
||||
</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Parameters:</span></dt>
|
||||
<dd><code>jo</code> - A JSONObject</dd>
|
||||
<dt><span class="strong">Returns:</span></dt>
|
||||
<dd>A cookie specification string</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="unescape(java.lang.String)">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockListLast">
|
||||
<li class="blockList">
|
||||
<h4>unescape</h4>
|
||||
<pre>public static java.lang.String unescape(java.lang.String string)</pre>
|
||||
<div class="block">Convert <code>%</code><i>hh</i> sequences to single characters, and
|
||||
convert plus to space.
|
||||
</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Parameters:</span></dt>
|
||||
<dd><code>string</code> - A string that may contain <code>+</code>
|
||||
|
||||
<small>(plus)</small>
|
||||
and <code>%</code><i>hh</i>
|
||||
sequences.
|
||||
</dd>
|
||||
<dt><span class="strong">Returns:</span></dt>
|
||||
<dd>The unescaped string.</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><a href="../../../com/intellectualcrafters/json/CDL.html"
|
||||
title="class in com.intellectualcrafters.json"><span class="strong">Prev Class</span></a></li>
|
||||
<li><a href="../../../com/intellectualcrafters/json/CookieList.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/Cookie.html" target="_top">Frames</a></li>
|
||||
<li><a href="Cookie.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>
|
334
doc/com/intellectualcrafters/json/CookieList.html
Normal file
334
doc/com/intellectualcrafters/json/CookieList.html
Normal file
@ -0,0 +1,334 @@
|
||||
<!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>CookieList</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 = "CookieList";
|
||||
}
|
||||
//-->
|
||||
</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><a href="../../../com/intellectualcrafters/json/Cookie.html" title="class in com.intellectualcrafters.json"><span
|
||||
class="strong">Prev Class</span></a></li>
|
||||
<li><a href="../../../com/intellectualcrafters/json/HTTP.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/CookieList.html" target="_top">Frames</a></li>
|
||||
<li><a href="CookieList.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 CookieList" class="title">Class CookieList</h2>
|
||||
</div>
|
||||
<div class="contentContainer">
|
||||
<ul class="inheritance">
|
||||
<li>java.lang.Object</li>
|
||||
<li>
|
||||
<ul class="inheritance">
|
||||
<li>com.intellectualcrafters.json.CookieList</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="description">
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<hr>
|
||||
<br>
|
||||
<pre>public class <span class="strong">CookieList</span>
|
||||
extends java.lang.Object</pre>
|
||||
<div class="block">Convert a web browser cookie list string to a JSONObject and back.</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/CookieList.html#CookieList()">CookieList</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/JSONObject.html"
|
||||
title="class in com.intellectualcrafters.json">JSONObject</a></code></td>
|
||||
<td class="colLast"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/CookieList.html#toJSONObject(java.lang.String)">toJSONObject</a></strong>(java.lang.String string)</code>
|
||||
|
||||
<div class="block">Convert a cookie list into a JSONObject.</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/CookieList.html#toString(com.intellectualcrafters.json.JSONObject)">toString</a></strong>(<a
|
||||
href="../../../com/intellectualcrafters/json/JSONObject.html"
|
||||
title="class in com.intellectualcrafters.json">JSONObject</a> jo)</code>
|
||||
|
||||
<div class="block">Convert a JSONObject into a cookie list.</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="CookieList()">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockListLast">
|
||||
<li class="blockList">
|
||||
<h4>CookieList</h4>
|
||||
<pre>public CookieList()</pre>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- ============ METHOD DETAIL ========== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="method_detail">
|
||||
<!-- -->
|
||||
</a>
|
||||
|
||||
<h3>Method Detail</h3>
|
||||
<a name="toJSONObject(java.lang.String)">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>toJSONObject</h4>
|
||||
<pre>public static <a href="../../../com/intellectualcrafters/json/JSONObject.html"
|
||||
title="class in com.intellectualcrafters.json">JSONObject</a> toJSONObject(java.lang.String string)
|
||||
throws <a href="../../../com/intellectualcrafters/json/JSONException.html"
|
||||
title="class in com.intellectualcrafters.json">JSONException</a></pre>
|
||||
<div class="block">Convert a cookie list into a JSONObject. A cookie list is a sequence
|
||||
of name/value pairs. The names are separated from the values by '='.
|
||||
The pairs are separated by ';'. The names and the values
|
||||
will be unescaped, possibly converting '+' and '%' sequences.
|
||||
<p/>
|
||||
To add a cookie to a cooklist,
|
||||
cookielistJSONObject.put(cookieJSONObject.getString("name"),
|
||||
cookieJSONObject.getString("value"));
|
||||
</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Parameters:</span></dt>
|
||||
<dd><code>string</code> - A cookie list string</dd>
|
||||
<dt><span class="strong">Returns:</span></dt>
|
||||
<dd>A JSONObject</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.JSONObject)">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockListLast">
|
||||
<li class="blockList">
|
||||
<h4>toString</h4>
|
||||
<pre>public static java.lang.String toString(<a href="../../../com/intellectualcrafters/json/JSONObject.html"
|
||||
title="class in com.intellectualcrafters.json">JSONObject</a> jo)
|
||||
throws <a href="../../../com/intellectualcrafters/json/JSONException.html"
|
||||
title="class in com.intellectualcrafters.json">JSONException</a></pre>
|
||||
<div class="block">Convert a JSONObject into a cookie list. A cookie list is a sequence
|
||||
of name/value pairs. The names are separated from the values by '='.
|
||||
The pairs are separated by ';'. The characters '%', '+', '=', and ';'
|
||||
in the names and values are replaced by "%hh".
|
||||
</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Parameters:</span></dt>
|
||||
<dd><code>jo</code> - A JSONObject</dd>
|
||||
<dt><span class="strong">Returns:</span></dt>
|
||||
<dd>A cookie list string</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><a href="../../../com/intellectualcrafters/json/Cookie.html" title="class in com.intellectualcrafters.json"><span
|
||||
class="strong">Prev Class</span></a></li>
|
||||
<li><a href="../../../com/intellectualcrafters/json/HTTP.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/CookieList.html" target="_top">Frames</a></li>
|
||||
<li><a href="CookieList.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>
|
439
doc/com/intellectualcrafters/json/HTTP.html
Normal file
439
doc/com/intellectualcrafters/json/HTTP.html
Normal file
@ -0,0 +1,439 @@
|
||||
<!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>HTTP</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 = "HTTP";
|
||||
}
|
||||
//-->
|
||||
</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><a href="../../../com/intellectualcrafters/json/CookieList.html"
|
||||
title="class in com.intellectualcrafters.json"><span class="strong">Prev Class</span></a></li>
|
||||
<li><a href="../../../com/intellectualcrafters/json/HTTPTokener.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/HTTP.html" target="_top">Frames</a></li>
|
||||
<li><a href="HTTP.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><a href="#field_summary">Field</a> | </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><a href="#field_detail">Field</a> | </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 HTTP" class="title">Class HTTP</h2>
|
||||
</div>
|
||||
<div class="contentContainer">
|
||||
<ul class="inheritance">
|
||||
<li>java.lang.Object</li>
|
||||
<li>
|
||||
<ul class="inheritance">
|
||||
<li>com.intellectualcrafters.json.HTTP</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="description">
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<hr>
|
||||
<br>
|
||||
<pre>public class <span class="strong">HTTP</span>
|
||||
extends java.lang.Object</pre>
|
||||
<div class="block">Convert an HTTP header to a JSONObject and back.</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="summary">
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<!-- =========== FIELD SUMMARY =========== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="field_summary">
|
||||
<!-- -->
|
||||
</a>
|
||||
|
||||
<h3>Field Summary</h3>
|
||||
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0"
|
||||
summary="Field Summary table, listing fields, and an explanation">
|
||||
<caption><span>Fields</span><span class="tabEnd"> </span></caption>
|
||||
<tr>
|
||||
<th class="colFirst" scope="col">Modifier and Type</th>
|
||||
<th class="colLast" scope="col">Field and Description</th>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><code>static java.lang.String</code></td>
|
||||
<td class="colLast"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/HTTP.html#CRLF">CRLF</a></strong></code>
|
||||
|
||||
<div class="block">Carriage return/line feed.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- ======== 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/HTTP.html#HTTP()">HTTP</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/JSONObject.html"
|
||||
title="class in com.intellectualcrafters.json">JSONObject</a></code></td>
|
||||
<td class="colLast"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/HTTP.html#toJSONObject(java.lang.String)">toJSONObject</a></strong>(java.lang.String string)</code>
|
||||
|
||||
<div class="block">Convert an HTTP header string into a JSONObject.</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/HTTP.html#toString(com.intellectualcrafters.json.JSONObject)">toString</a></strong>(<a
|
||||
href="../../../com/intellectualcrafters/json/JSONObject.html"
|
||||
title="class in com.intellectualcrafters.json">JSONObject</a> jo)</code>
|
||||
|
||||
<div class="block">Convert a JSONObject into an HTTP header.</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">
|
||||
<!-- ============ FIELD DETAIL =========== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="field_detail">
|
||||
<!-- -->
|
||||
</a>
|
||||
|
||||
<h3>Field Detail</h3>
|
||||
<a name="CRLF">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockListLast">
|
||||
<li class="blockList">
|
||||
<h4>CRLF</h4>
|
||||
<pre>public static final java.lang.String CRLF</pre>
|
||||
<div class="block">Carriage return/line feed.</div>
|
||||
<dl>
|
||||
<dt><span class="strong">See Also:</span></dt>
|
||||
<dd><a href="../../../constant-values.html#com.intellectualcrafters.json.HTTP.CRLF">Constant
|
||||
Field Values</a></dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="constructor_detail">
|
||||
<!-- -->
|
||||
</a>
|
||||
|
||||
<h3>Constructor Detail</h3>
|
||||
<a name="HTTP()">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockListLast">
|
||||
<li class="blockList">
|
||||
<h4>HTTP</h4>
|
||||
<pre>public HTTP()</pre>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- ============ METHOD DETAIL ========== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="method_detail">
|
||||
<!-- -->
|
||||
</a>
|
||||
|
||||
<h3>Method Detail</h3>
|
||||
<a name="toJSONObject(java.lang.String)">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>toJSONObject</h4>
|
||||
<pre>public static <a href="../../../com/intellectualcrafters/json/JSONObject.html"
|
||||
title="class in com.intellectualcrafters.json">JSONObject</a> toJSONObject(java.lang.String string)
|
||||
throws <a href="../../../com/intellectualcrafters/json/JSONException.html"
|
||||
title="class in com.intellectualcrafters.json">JSONException</a></pre>
|
||||
<div class="block">Convert an HTTP header string into a JSONObject. It can be a request
|
||||
header or a response header. A request header will contain
|
||||
<p/>
|
||||
<pre>
|
||||
{
|
||||
Method: "POST" (for example),
|
||||
"Request-URI": "/" (for example),
|
||||
"HTTP-Version": "HTTP/1.1" (for example)
|
||||
}
|
||||
</pre>
|
||||
<p/>
|
||||
A response header will contain
|
||||
<p/>
|
||||
<pre>
|
||||
{
|
||||
"HTTP-Version": "HTTP/1.1" (for example),
|
||||
"Status-Code": "200" (for example),
|
||||
"Reason-Phrase": "OK" (for example)
|
||||
}
|
||||
</pre>
|
||||
<p/>
|
||||
In addition, the other parameters in the header will be captured, using
|
||||
the HTTP field names as JSON names, so that
|
||||
<p/>
|
||||
<pre>
|
||||
Date: Sun, 26 May 2002 18:06:04 GMT
|
||||
Cookie: Q=q2=PPEAsg--; B=677gi6ouf29bn&b=2&f=s
|
||||
Cache-Control: no-cache
|
||||
</pre>
|
||||
<p/>
|
||||
become
|
||||
<p/>
|
||||
<pre>
|
||||
{...
|
||||
Date: "Sun, 26 May 2002 18:06:04 GMT",
|
||||
Cookie: "Q=q2=PPEAsg--; B=677gi6ouf29bn&b=2&f=s",
|
||||
"Cache-Control": "no-cache",
|
||||
...}
|
||||
</pre>
|
||||
<p/>
|
||||
It does no further checking or conversion. It does not parse dates.
|
||||
It does not do '%' transforms on URLs.
|
||||
</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Parameters:</span></dt>
|
||||
<dd><code>string</code> - An HTTP header string.</dd>
|
||||
<dt><span class="strong">Returns:</span></dt>
|
||||
<dd>A JSONObject containing the elements and attributes
|
||||
of the XML string.
|
||||
</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.JSONObject)">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockListLast">
|
||||
<li class="blockList">
|
||||
<h4>toString</h4>
|
||||
<pre>public static java.lang.String toString(<a href="../../../com/intellectualcrafters/json/JSONObject.html"
|
||||
title="class in com.intellectualcrafters.json">JSONObject</a> jo)
|
||||
throws <a href="../../../com/intellectualcrafters/json/JSONException.html"
|
||||
title="class in com.intellectualcrafters.json">JSONException</a></pre>
|
||||
<div class="block">Convert a JSONObject into an HTTP header. A request header must contain
|
||||
<p/>
|
||||
<pre>
|
||||
{
|
||||
Method: "POST" (for example),
|
||||
"Request-URI": "/" (for example),
|
||||
"HTTP-Version": "HTTP/1.1" (for example)
|
||||
}
|
||||
</pre>
|
||||
<p/>
|
||||
A response header must contain
|
||||
<p/>
|
||||
<pre>
|
||||
{
|
||||
"HTTP-Version": "HTTP/1.1" (for example),
|
||||
"Status-Code": "200" (for example),
|
||||
"Reason-Phrase": "OK" (for example)
|
||||
}
|
||||
</pre>
|
||||
<p/>
|
||||
Any other members of the JSONObject will be output as HTTP fields.
|
||||
The result will end with two CRLF pairs.
|
||||
</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Parameters:</span></dt>
|
||||
<dd><code>jo</code> - A JSONObject</dd>
|
||||
<dt><span class="strong">Returns:</span></dt>
|
||||
<dd>An HTTP header string.</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> -
|
||||
if the object does not contain enough
|
||||
information.
|
||||
</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><a href="../../../com/intellectualcrafters/json/CookieList.html"
|
||||
title="class in com.intellectualcrafters.json"><span class="strong">Prev Class</span></a></li>
|
||||
<li><a href="../../../com/intellectualcrafters/json/HTTPTokener.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/HTTP.html" target="_top">Frames</a></li>
|
||||
<li><a href="HTTP.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><a href="#field_summary">Field</a> | </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><a href="#field_detail">Field</a> | </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>
|
327
doc/com/intellectualcrafters/json/HTTPTokener.html
Normal file
327
doc/com/intellectualcrafters/json/HTTPTokener.html
Normal file
@ -0,0 +1,327 @@
|
||||
<!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>HTTPTokener</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 = "HTTPTokener";
|
||||
}
|
||||
//-->
|
||||
</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><a href="../../../com/intellectualcrafters/json/HTTP.html"
|
||||
title="class in com.intellectualcrafters.json"><span class="strong">Prev Class</span></a></li>
|
||||
<li><a href="../../../com/intellectualcrafters/json/JSONArray.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/HTTPTokener.html" target="_top">Frames</a></li>
|
||||
<li><a href="HTTPTokener.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 HTTPTokener" class="title">Class HTTPTokener</h2>
|
||||
</div>
|
||||
<div class="contentContainer">
|
||||
<ul class="inheritance">
|
||||
<li>java.lang.Object</li>
|
||||
<li>
|
||||
<ul class="inheritance">
|
||||
<li><a href="../../../com/intellectualcrafters/json/JSONTokener.html"
|
||||
title="class in com.intellectualcrafters.json">com.intellectualcrafters.json.JSONTokener</a></li>
|
||||
<li>
|
||||
<ul class="inheritance">
|
||||
<li>com.intellectualcrafters.json.HTTPTokener</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="description">
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<hr>
|
||||
<br>
|
||||
<pre>public class <span class="strong">HTTPTokener</span>
|
||||
extends <a href="../../../com/intellectualcrafters/json/JSONTokener.html"
|
||||
title="class in com.intellectualcrafters.json">JSONTokener</a></pre>
|
||||
<div class="block">The HTTPTokener extends the JSONTokener to provide additional methods
|
||||
for the parsing of HTTP headers.
|
||||
</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/HTTPTokener.html#HTTPTokener(java.lang.String)">HTTPTokener</a></strong>(java.lang.String string)</code>
|
||||
|
||||
<div class="block">Construct an HTTPTokener from a string.</div>
|
||||
</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>java.lang.String</code></td>
|
||||
<td class="colLast"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/HTTPTokener.html#nextToken()">nextToken</a></strong>()</code>
|
||||
|
||||
<div class="block">Get the next token or string.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a
|
||||
name="methods_inherited_from_class_com.intellectualcrafters.json.JSONTokener">
|
||||
<!-- -->
|
||||
</a>
|
||||
|
||||
<h3>Methods inherited from class com.intellectualcrafters.json.<a
|
||||
href="../../../com/intellectualcrafters/json/JSONTokener.html"
|
||||
title="class in com.intellectualcrafters.json">JSONTokener</a></h3>
|
||||
<code><a href="../../../com/intellectualcrafters/json/JSONTokener.html#back()">back</a>,
|
||||
<a href="../../../com/intellectualcrafters/json/JSONTokener.html#dehexchar(char)">dehexchar</a>,
|
||||
<a href="../../../com/intellectualcrafters/json/JSONTokener.html#end()">end</a>, <a
|
||||
href="../../../com/intellectualcrafters/json/JSONTokener.html#more()">more</a>,
|
||||
<a href="../../../com/intellectualcrafters/json/JSONTokener.html#next()">next</a>,
|
||||
<a href="../../../com/intellectualcrafters/json/JSONTokener.html#next(char)">next</a>,
|
||||
<a href="../../../com/intellectualcrafters/json/JSONTokener.html#next(int)">next</a>,
|
||||
<a href="../../../com/intellectualcrafters/json/JSONTokener.html#nextClean()">nextClean</a>,
|
||||
<a href="../../../com/intellectualcrafters/json/JSONTokener.html#nextString(char)">nextString</a>,
|
||||
<a href="../../../com/intellectualcrafters/json/JSONTokener.html#nextTo(char)">nextTo</a>,
|
||||
<a href="../../../com/intellectualcrafters/json/JSONTokener.html#nextTo(java.lang.String)">nextTo</a>,
|
||||
<a href="../../../com/intellectualcrafters/json/JSONTokener.html#nextValue()">nextValue</a>,
|
||||
<a href="../../../com/intellectualcrafters/json/JSONTokener.html#skipTo(char)">skipTo</a>,
|
||||
<a href="../../../com/intellectualcrafters/json/JSONTokener.html#syntaxError(java.lang.String)">syntaxError</a>,
|
||||
<a href="../../../com/intellectualcrafters/json/JSONTokener.html#toString()">toString</a></code>
|
||||
</li>
|
||||
</ul>
|
||||
<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, 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="HTTPTokener(java.lang.String)">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockListLast">
|
||||
<li class="blockList">
|
||||
<h4>HTTPTokener</h4>
|
||||
<pre>public HTTPTokener(java.lang.String string)</pre>
|
||||
<div class="block">Construct an HTTPTokener from a string.</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Parameters:</span></dt>
|
||||
<dd><code>string</code> - A source string.</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- ============ METHOD DETAIL ========== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="method_detail">
|
||||
<!-- -->
|
||||
</a>
|
||||
|
||||
<h3>Method Detail</h3>
|
||||
<a name="nextToken()">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockListLast">
|
||||
<li class="blockList">
|
||||
<h4>nextToken</h4>
|
||||
<pre>public java.lang.String nextToken()
|
||||
throws <a href="../../../com/intellectualcrafters/json/JSONException.html"
|
||||
title="class in com.intellectualcrafters.json">JSONException</a></pre>
|
||||
<div class="block">Get the next token or string. This is used in parsing HTTP headers.
|
||||
</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Returns:</span></dt>
|
||||
<dd>A String.</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><a href="../../../com/intellectualcrafters/json/HTTP.html"
|
||||
title="class in com.intellectualcrafters.json"><span class="strong">Prev Class</span></a></li>
|
||||
<li><a href="../../../com/intellectualcrafters/json/JSONArray.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/HTTPTokener.html" target="_top">Frames</a></li>
|
||||
<li><a href="HTTPTokener.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>
|
1789
doc/com/intellectualcrafters/json/JSONArray.html
Normal file
1789
doc/com/intellectualcrafters/json/JSONArray.html
Normal file
File diff suppressed because it is too large
Load Diff
350
doc/com/intellectualcrafters/json/JSONException.html
Normal file
350
doc/com/intellectualcrafters/json/JSONException.html
Normal file
@ -0,0 +1,350 @@
|
||||
<!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:55 CET 2014 -->
|
||||
<title>JSONException</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 = "JSONException";
|
||||
}
|
||||
//-->
|
||||
</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><a href="../../../com/intellectualcrafters/json/JSONArray.html"
|
||||
title="class in com.intellectualcrafters.json"><span class="strong">Prev Class</span></a></li>
|
||||
<li><a href="../../../com/intellectualcrafters/json/JSONML.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/JSONException.html" target="_top">Frames</a></li>
|
||||
<li><a href="JSONException.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 JSONException" class="title">Class JSONException</h2>
|
||||
</div>
|
||||
<div class="contentContainer">
|
||||
<ul class="inheritance">
|
||||
<li>java.lang.Object</li>
|
||||
<li>
|
||||
<ul class="inheritance">
|
||||
<li>java.lang.Throwable</li>
|
||||
<li>
|
||||
<ul class="inheritance">
|
||||
<li>java.lang.Exception</li>
|
||||
<li>
|
||||
<ul class="inheritance">
|
||||
<li>java.lang.RuntimeException</li>
|
||||
<li>
|
||||
<ul class="inheritance">
|
||||
<li>com.intellectualcrafters.json.JSONException</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="description">
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<dl>
|
||||
<dt>All Implemented Interfaces:</dt>
|
||||
<dd>java.io.Serializable</dd>
|
||||
</dl>
|
||||
<hr>
|
||||
<br>
|
||||
<pre>public class <span class="strong">JSONException</span>
|
||||
extends java.lang.RuntimeException</pre>
|
||||
<div class="block">The JSONException is thrown by the JSON.org classes when things are amiss.</div>
|
||||
<dl>
|
||||
<dt><span class="strong">See Also:</span></dt>
|
||||
<dd><a href="../../../serialized-form.html#com.intellectualcrafters.json.JSONException">Serialized
|
||||
Form</a></dd>
|
||||
</dl>
|
||||
</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/JSONException.html#JSONException(java.lang.String)">JSONException</a></strong>(java.lang.String message)</code>
|
||||
|
||||
<div class="block">Constructs a JSONException with an explanatory message.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<td class="colOne"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/JSONException.html#JSONException(java.lang.Throwable)">JSONException</a></strong>(java.lang.Throwable cause)</code>
|
||||
|
||||
<div class="block">Constructs a new JSONException with the specified cause.</div>
|
||||
</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>java.lang.Throwable</code></td>
|
||||
<td class="colLast"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/JSONException.html#getCause()">getCause</a></strong>()</code>
|
||||
|
||||
<div class="block">Returns the cause of this exception or null if the cause is
|
||||
nonexistent
|
||||
or unknown.
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Throwable">
|
||||
<!-- -->
|
||||
</a>
|
||||
|
||||
<h3>Methods inherited from class java.lang.Throwable</h3>
|
||||
<code>addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace,
|
||||
getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace,
|
||||
setStackTrace, toString</code></li>
|
||||
</ul>
|
||||
<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, 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="JSONException(java.lang.String)">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>JSONException</h4>
|
||||
<pre>public JSONException(java.lang.String message)</pre>
|
||||
<div class="block">Constructs a JSONException with an explanatory message.</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Parameters:</span></dt>
|
||||
<dd><code>message</code> - Detail about the reason for the exception.</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="JSONException(java.lang.Throwable)">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockListLast">
|
||||
<li class="blockList">
|
||||
<h4>JSONException</h4>
|
||||
<pre>public JSONException(java.lang.Throwable cause)</pre>
|
||||
<div class="block">Constructs a new JSONException with the specified cause.</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Parameters:</span></dt>
|
||||
<dd><code>cause</code> - The cause.</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- ============ METHOD DETAIL ========== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="method_detail">
|
||||
<!-- -->
|
||||
</a>
|
||||
|
||||
<h3>Method Detail</h3>
|
||||
<a name="getCause()">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockListLast">
|
||||
<li class="blockList">
|
||||
<h4>getCause</h4>
|
||||
<pre>public java.lang.Throwable getCause()</pre>
|
||||
<div class="block">Returns the cause of this exception or null if the cause is
|
||||
nonexistent
|
||||
or unknown.
|
||||
</div>
|
||||
<dl>
|
||||
<dt><strong>Overrides:</strong></dt>
|
||||
<dd><code>getCause</code> in class <code>java.lang.Throwable</code></dd>
|
||||
<dt><span class="strong">Returns:</span></dt>
|
||||
<dd>the cause of this exception or null if the cause is nonexistent
|
||||
or unknown.
|
||||
</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><a href="../../../com/intellectualcrafters/json/JSONArray.html"
|
||||
title="class in com.intellectualcrafters.json"><span class="strong">Prev Class</span></a></li>
|
||||
<li><a href="../../../com/intellectualcrafters/json/JSONML.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/JSONException.html" target="_top">Frames</a></li>
|
||||
<li><a href="JSONException.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>
|
510
doc/com/intellectualcrafters/json/JSONML.html
Normal file
510
doc/com/intellectualcrafters/json/JSONML.html
Normal file
@ -0,0 +1,510 @@
|
||||
<!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:55 CET 2014 -->
|
||||
<title>JSONML</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 = "JSONML";
|
||||
}
|
||||
//-->
|
||||
</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><a href="../../../com/intellectualcrafters/json/JSONException.html"
|
||||
title="class in com.intellectualcrafters.json"><span class="strong">Prev Class</span></a></li>
|
||||
<li><a href="../../../com/intellectualcrafters/json/JSONObject.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/JSONML.html" target="_top">Frames</a></li>
|
||||
<li><a href="JSONML.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 JSONML" class="title">Class JSONML</h2>
|
||||
</div>
|
||||
<div class="contentContainer">
|
||||
<ul class="inheritance">
|
||||
<li>java.lang.Object</li>
|
||||
<li>
|
||||
<ul class="inheritance">
|
||||
<li>com.intellectualcrafters.json.JSONML</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="description">
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<hr>
|
||||
<br>
|
||||
<pre>public class <span class="strong">JSONML</span>
|
||||
extends java.lang.Object</pre>
|
||||
<div class="block">This provides static methods to convert an XML text into a JSONArray or
|
||||
JSONObject, and to covert a JSONArray or JSONObject into an XML text using
|
||||
the JsonML transform.
|
||||
</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/JSONML.html#JSONML()">JSONML</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/JSONML.html#toJSONArray(java.lang.String)">toJSONArray</a></strong>(java.lang.String string)</code>
|
||||
|
||||
<div class="block">Convert a well-formed (but not necessarily valid) XML string into a
|
||||
JSONArray using the JsonML transform.
|
||||
</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/JSONML.html#toJSONArray(com.intellectualcrafters.json.XMLTokener)">toJSONArray</a></strong>(<a
|
||||
href="../../../com/intellectualcrafters/json/XMLTokener.html"
|
||||
title="class in com.intellectualcrafters.json">XMLTokener</a> x)</code>
|
||||
|
||||
<div class="block">Convert a well-formed (but not necessarily valid) XML string into a
|
||||
JSONArray using the JsonML transform.
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<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/JSONML.html#toJSONObject(java.lang.String)">toJSONObject</a></strong>(java.lang.String string)</code>
|
||||
|
||||
<div class="block">Convert a well-formed (but not necessarily valid) XML string into a
|
||||
JSONObject using the JsonML transform.
|
||||
</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/JSONML.html#toJSONObject(com.intellectualcrafters.json.XMLTokener)">toJSONObject</a></strong>(<a
|
||||
href="../../../com/intellectualcrafters/json/XMLTokener.html"
|
||||
title="class in com.intellectualcrafters.json">XMLTokener</a> x)</code>
|
||||
|
||||
<div class="block">Convert a well-formed (but not necessarily valid) XML string into a
|
||||
JSONObject using the JsonML transform.
|
||||
</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/JSONML.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">Reverse the JSONML transformation, making an XML text from a
|
||||
JSONArray.
|
||||
</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/JSONML.html#toString(com.intellectualcrafters.json.JSONObject)">toString</a></strong>(<a
|
||||
href="../../../com/intellectualcrafters/json/JSONObject.html"
|
||||
title="class in com.intellectualcrafters.json">JSONObject</a> jo)</code>
|
||||
|
||||
<div class="block">Reverse the JSONML transformation, making an XML text from a
|
||||
JSONObject.
|
||||
</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="JSONML()">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockListLast">
|
||||
<li class="blockList">
|
||||
<h4>JSONML</h4>
|
||||
<pre>public JSONML()</pre>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- ============ METHOD DETAIL ========== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="method_detail">
|
||||
<!-- -->
|
||||
</a>
|
||||
|
||||
<h3>Method Detail</h3>
|
||||
<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">Convert a well-formed (but not necessarily valid) XML string into a
|
||||
JSONArray using the JsonML transform. Each XML tag is represented as
|
||||
a JSONArray in which the first element is the tag name. If the tag has
|
||||
attributes, then the second element will be JSONObject containing the
|
||||
name/value pairs. If the tag contains children, then strings and
|
||||
JSONArrays will represent the child tags.
|
||||
Comments, prologs, DTDs, and <code><[ [ ]]></code> are ignored.
|
||||
</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Parameters:</span></dt>
|
||||
<dd><code>string</code> - The source string.</dd>
|
||||
<dt><span class="strong">Returns:</span></dt>
|
||||
<dd>A JSONArray containing the structured data from the XML string.</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.XMLTokener)">
|
||||
<!-- -->
|
||||
</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/XMLTokener.html" title="class in com.intellectualcrafters.json">XMLTokener</a> x)
|
||||
throws <a href="../../../com/intellectualcrafters/json/JSONException.html"
|
||||
title="class in com.intellectualcrafters.json">JSONException</a></pre>
|
||||
<div class="block">Convert a well-formed (but not necessarily valid) XML string into a
|
||||
JSONArray using the JsonML transform. Each XML tag is represented as
|
||||
a JSONArray in which the first element is the tag name. If the tag has
|
||||
attributes, then the second element will be JSONObject containing the
|
||||
name/value pairs. If the tag contains children, then strings and
|
||||
JSONArrays will represent the child content and tags.
|
||||
Comments, prologs, DTDs, and <code><[ [ ]]></code> are ignored.
|
||||
</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Parameters:</span></dt>
|
||||
<dd><code>x</code> - An XMLTokener.</dd>
|
||||
<dt><span class="strong">Returns:</span></dt>
|
||||
<dd>A JSONArray containing the structured data from the XML string.</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="toJSONObject(com.intellectualcrafters.json.XMLTokener)">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>toJSONObject</h4>
|
||||
<pre>public static <a href="../../../com/intellectualcrafters/json/JSONObject.html"
|
||||
title="class in com.intellectualcrafters.json">JSONObject</a> toJSONObject(<a
|
||||
href="../../../com/intellectualcrafters/json/XMLTokener.html" title="class in com.intellectualcrafters.json">XMLTokener</a> x)
|
||||
throws <a href="../../../com/intellectualcrafters/json/JSONException.html"
|
||||
title="class in com.intellectualcrafters.json">JSONException</a></pre>
|
||||
<div class="block">Convert a well-formed (but not necessarily valid) XML string into a
|
||||
JSONObject using the JsonML transform. Each XML tag is represented as
|
||||
a JSONObject with a "tagName" property. If the tag has attributes, then
|
||||
the attributes will be in the JSONObject as properties. If the tag
|
||||
contains children, the object will have a "childNodes" property which
|
||||
will be an array of strings and JsonML JSONObjects.
|
||||
<p/>
|
||||
Comments, prologs, DTDs, and <code><[ [ ]]></code> are ignored.
|
||||
</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Parameters:</span></dt>
|
||||
<dd><code>x</code> - An XMLTokener of the XML source text.</dd>
|
||||
<dt><span class="strong">Returns:</span></dt>
|
||||
<dd>A JSONObject containing the structured data from the XML string.</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="toJSONObject(java.lang.String)">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>toJSONObject</h4>
|
||||
<pre>public static <a href="../../../com/intellectualcrafters/json/JSONObject.html"
|
||||
title="class in com.intellectualcrafters.json">JSONObject</a> toJSONObject(java.lang.String string)
|
||||
throws <a href="../../../com/intellectualcrafters/json/JSONException.html"
|
||||
title="class in com.intellectualcrafters.json">JSONException</a></pre>
|
||||
<div class="block">Convert a well-formed (but not necessarily valid) XML string into a
|
||||
JSONObject using the JsonML transform. Each XML tag is represented as
|
||||
a JSONObject with a "tagName" property. If the tag has attributes, then
|
||||
the attributes will be in the JSONObject as properties. If the tag
|
||||
contains children, the object will have a "childNodes" property which
|
||||
will be an array of strings and JsonML JSONObjects.
|
||||
<p/>
|
||||
Comments, prologs, DTDs, and <code><[ [ ]]></code> are ignored.
|
||||
</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Parameters:</span></dt>
|
||||
<dd><code>string</code> - The XML source text.</dd>
|
||||
<dt><span class="strong">Returns:</span></dt>
|
||||
<dd>A JSONObject containing the structured data from the XML string.</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">Reverse the JSONML transformation, making an XML text from a JSONArray.
|
||||
</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Parameters:</span></dt>
|
||||
<dd><code>ja</code> - A JSONArray.</dd>
|
||||
<dt><span class="strong">Returns:</span></dt>
|
||||
<dd>An XML string.</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.JSONObject)">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockListLast">
|
||||
<li class="blockList">
|
||||
<h4>toString</h4>
|
||||
<pre>public static java.lang.String toString(<a href="../../../com/intellectualcrafters/json/JSONObject.html"
|
||||
title="class in com.intellectualcrafters.json">JSONObject</a> jo)
|
||||
throws <a href="../../../com/intellectualcrafters/json/JSONException.html"
|
||||
title="class in com.intellectualcrafters.json">JSONException</a></pre>
|
||||
<div class="block">Reverse the JSONML transformation, making an XML text from a JSONObject.
|
||||
The JSONObject must contain a "tagName" property. If it has children,
|
||||
then it must have a "childNodes" property containing an array of objects.
|
||||
The other properties are attributes with string values.
|
||||
</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Parameters:</span></dt>
|
||||
<dd><code>jo</code> - A JSONObject.</dd>
|
||||
<dt><span class="strong">Returns:</span></dt>
|
||||
<dd>An XML string.</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><a href="../../../com/intellectualcrafters/json/JSONException.html"
|
||||
title="class in com.intellectualcrafters.json"><span class="strong">Prev Class</span></a></li>
|
||||
<li><a href="../../../com/intellectualcrafters/json/JSONObject.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/JSONML.html" target="_top">Frames</a></li>
|
||||
<li><a href="JSONML.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>
|
2350
doc/com/intellectualcrafters/json/JSONObject.html
Normal file
2350
doc/com/intellectualcrafters/json/JSONObject.html
Normal file
File diff suppressed because it is too large
Load Diff
235
doc/com/intellectualcrafters/json/JSONString.html
Normal file
235
doc/com/intellectualcrafters/json/JSONString.html
Normal file
@ -0,0 +1,235 @@
|
||||
<!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:55 CET 2014 -->
|
||||
<title>JSONString</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 = "JSONString";
|
||||
}
|
||||
//-->
|
||||
</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><a href="../../../com/intellectualcrafters/json/JSONObject.html"
|
||||
title="class in com.intellectualcrafters.json"><span class="strong">Prev Class</span></a></li>
|
||||
<li><a href="../../../com/intellectualcrafters/json/JSONStringer.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/JSONString.html" target="_top">Frames</a></li>
|
||||
<li><a href="JSONString.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>Constr | </li>
|
||||
<li><a href="#method_summary">Method</a></li>
|
||||
</ul>
|
||||
<ul class="subNavList">
|
||||
<li>Detail: </li>
|
||||
<li>Field | </li>
|
||||
<li>Constr | </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="Interface JSONString" class="title">Interface JSONString</h2>
|
||||
</div>
|
||||
<div class="contentContainer">
|
||||
<div class="description">
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<hr>
|
||||
<br>
|
||||
<pre>public interface <span class="strong">JSONString</span></pre>
|
||||
<div class="block">The <code>JSONString</code> interface allows a <code>toJSONString()</code>
|
||||
method so that a class can change the behavior of
|
||||
<code>JSONObject.toString()</code>, <code>JSONArray.toString()</code>,
|
||||
and <code>JSONWriter.value(</code>Object<code>)</code>. The
|
||||
<code>toJSONString</code> method will be used instead of the default behavior
|
||||
of using the Object's <code>toString()</code> method and quoting the result.
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="summary">
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<!-- ========== 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>java.lang.String</code></td>
|
||||
<td class="colLast"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/JSONString.html#toJSONString()">toJSONString</a></strong>()</code>
|
||||
|
||||
<div class="block">The <code>toJSONString</code> method allows a class to produce
|
||||
its own
|
||||
JSON
|
||||
serialization.
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="details">
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<!-- ============ METHOD DETAIL ========== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="method_detail">
|
||||
<!-- -->
|
||||
</a>
|
||||
|
||||
<h3>Method Detail</h3>
|
||||
<a name="toJSONString()">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockListLast">
|
||||
<li class="blockList">
|
||||
<h4>toJSONString</h4>
|
||||
<pre>java.lang.String toJSONString()</pre>
|
||||
<div class="block">The <code>toJSONString</code> method allows a class to produce its
|
||||
own
|
||||
JSON
|
||||
serialization.
|
||||
</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Returns:</span></dt>
|
||||
<dd>A strictly syntactically correct JSON text.</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><a href="../../../com/intellectualcrafters/json/JSONObject.html"
|
||||
title="class in com.intellectualcrafters.json"><span class="strong">Prev Class</span></a></li>
|
||||
<li><a href="../../../com/intellectualcrafters/json/JSONStringer.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/JSONString.html" target="_top">Frames</a></li>
|
||||
<li><a href="JSONString.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>Constr | </li>
|
||||
<li><a href="#method_summary">Method</a></li>
|
||||
</ul>
|
||||
<ul class="subNavList">
|
||||
<li>Detail: </li>
|
||||
<li>Field | </li>
|
||||
<li>Constr | </li>
|
||||
<li><a href="#method_detail">Method</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<a name="skip-navbar_bottom">
|
||||
<!-- -->
|
||||
</a></div>
|
||||
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
||||
</body>
|
||||
</html>
|
368
doc/com/intellectualcrafters/json/JSONStringer.html
Normal file
368
doc/com/intellectualcrafters/json/JSONStringer.html
Normal file
@ -0,0 +1,368 @@
|
||||
<!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:55 CET 2014 -->
|
||||
<title>JSONStringer</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 = "JSONStringer";
|
||||
}
|
||||
//-->
|
||||
</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><a href="../../../com/intellectualcrafters/json/JSONString.html"
|
||||
title="interface in com.intellectualcrafters.json"><span class="strong">Prev Class</span></a></li>
|
||||
<li><a href="../../../com/intellectualcrafters/json/JSONTokener.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/JSONStringer.html" target="_top">Frames</a></li>
|
||||
<li><a href="JSONStringer.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><a href="#fields_inherited_from_class_com.intellectualcrafters.json.JSONWriter">Field</a> |
|
||||
</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 JSONStringer" class="title">Class JSONStringer</h2>
|
||||
</div>
|
||||
<div class="contentContainer">
|
||||
<ul class="inheritance">
|
||||
<li>java.lang.Object</li>
|
||||
<li>
|
||||
<ul class="inheritance">
|
||||
<li><a href="../../../com/intellectualcrafters/json/JSONWriter.html"
|
||||
title="class in com.intellectualcrafters.json">com.intellectualcrafters.json.JSONWriter</a></li>
|
||||
<li>
|
||||
<ul class="inheritance">
|
||||
<li>com.intellectualcrafters.json.JSONStringer</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="description">
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<hr>
|
||||
<br>
|
||||
<pre>public class <span class="strong">JSONStringer</span>
|
||||
extends <a href="../../../com/intellectualcrafters/json/JSONWriter.html" title="class in com.intellectualcrafters.json">JSONWriter</a></pre>
|
||||
<div class="block">JSONStringer provides a quick and convenient way of producing JSON text.
|
||||
The texts produced strictly conform to JSON syntax rules. No whitespace is
|
||||
added, so the results are ready for transmission or storage. Each instance of
|
||||
JSONStringer can produce one JSON text.
|
||||
<p/>
|
||||
A JSONStringer instance provides a <code>value</code> method for appending
|
||||
values to the text, and a <code>key</code> method for adding keys before
|
||||
values in objects. There are <code>array</code> and <code>endArray</code>
|
||||
methods that make and bound array values, and <code>object</code> and
|
||||
<code>endObject</code> methods which make and bound object values. All of
|
||||
these methods return the JSONWriter instance, permitting cascade style. For
|
||||
example,
|
||||
<p/>
|
||||
<pre>
|
||||
myString = new JSONStringer().object().key("JSON").value("Hello, World!").endObject().toString();
|
||||
</pre>
|
||||
<p/>
|
||||
which produces the string
|
||||
<p/>
|
||||
<pre>
|
||||
{"JSON":"Hello, World!"}
|
||||
</pre>
|
||||
<p/>
|
||||
The first method called must be <code>array</code> or <code>object</code>.
|
||||
There are no methods for adding commas or colons. JSONStringer adds them for
|
||||
you. Objects and arrays can be nested up to 20 levels deep.
|
||||
<p/>
|
||||
This can sometimes be easier than using a JSONObject to build a string.
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="summary">
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<!-- =========== FIELD SUMMARY =========== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="field_summary">
|
||||
<!-- -->
|
||||
</a>
|
||||
|
||||
<h3>Field Summary</h3>
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a
|
||||
name="fields_inherited_from_class_com.intellectualcrafters.json.JSONWriter">
|
||||
<!-- -->
|
||||
</a>
|
||||
|
||||
<h3>Fields inherited from class com.intellectualcrafters.json.<a
|
||||
href="../../../com/intellectualcrafters/json/JSONWriter.html"
|
||||
title="class in com.intellectualcrafters.json">JSONWriter</a></h3>
|
||||
<code><a href="../../../com/intellectualcrafters/json/JSONWriter.html#mode">mode</a>, <a
|
||||
href="../../../com/intellectualcrafters/json/JSONWriter.html#writer">writer</a></code>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- ======== 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/JSONStringer.html#JSONStringer()">JSONStringer</a></strong>()</code>
|
||||
|
||||
<div class="block">Make a fresh JSONStringer.</div>
|
||||
</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>java.lang.String</code></td>
|
||||
<td class="colLast"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/JSONStringer.html#toString()">toString</a></strong>()</code>
|
||||
|
||||
<div class="block">Return the JSON text.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a
|
||||
name="methods_inherited_from_class_com.intellectualcrafters.json.JSONWriter">
|
||||
<!-- -->
|
||||
</a>
|
||||
|
||||
<h3>Methods inherited from class com.intellectualcrafters.json.<a
|
||||
href="../../../com/intellectualcrafters/json/JSONWriter.html"
|
||||
title="class in com.intellectualcrafters.json">JSONWriter</a></h3>
|
||||
<code><a href="../../../com/intellectualcrafters/json/JSONWriter.html#array()">array</a>,
|
||||
<a href="../../../com/intellectualcrafters/json/JSONWriter.html#endArray()">endArray</a>,
|
||||
<a href="../../../com/intellectualcrafters/json/JSONWriter.html#endObject()">endObject</a>,
|
||||
<a href="../../../com/intellectualcrafters/json/JSONWriter.html#key(java.lang.String)">key</a>,
|
||||
<a href="../../../com/intellectualcrafters/json/JSONWriter.html#object()">object</a>,
|
||||
<a href="../../../com/intellectualcrafters/json/JSONWriter.html#value(boolean)">value</a>,
|
||||
<a href="../../../com/intellectualcrafters/json/JSONWriter.html#value(double)">value</a>,
|
||||
<a href="../../../com/intellectualcrafters/json/JSONWriter.html#value(long)">value</a>,
|
||||
<a href="../../../com/intellectualcrafters/json/JSONWriter.html#value(java.lang.Object)">value</a></code>
|
||||
</li>
|
||||
</ul>
|
||||
<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, 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="JSONStringer()">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockListLast">
|
||||
<li class="blockList">
|
||||
<h4>JSONStringer</h4>
|
||||
<pre>public JSONStringer()</pre>
|
||||
<div class="block">Make a fresh JSONStringer. It can be used to build one JSON text.
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- ============ METHOD DETAIL ========== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="method_detail">
|
||||
<!-- -->
|
||||
</a>
|
||||
|
||||
<h3>Method Detail</h3>
|
||||
<a name="toString()">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockListLast">
|
||||
<li class="blockList">
|
||||
<h4>toString</h4>
|
||||
<pre>public java.lang.String toString()</pre>
|
||||
<div class="block">Return the JSON text. This method is used to obtain the product of
|
||||
the
|
||||
JSONStringer instance. It will return <code>null</code> if there was a
|
||||
problem in the construction of the JSON text (such as the calls to
|
||||
<code>array</code> were not properly balanced with calls to
|
||||
<code>endArray</code>).
|
||||
</div>
|
||||
<dl>
|
||||
<dt><strong>Overrides:</strong></dt>
|
||||
<dd><code>toString</code> in class <code>java.lang.Object</code></dd>
|
||||
<dt><span class="strong">Returns:</span></dt>
|
||||
<dd>The JSON text.</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><a href="../../../com/intellectualcrafters/json/JSONString.html"
|
||||
title="interface in com.intellectualcrafters.json"><span class="strong">Prev Class</span></a></li>
|
||||
<li><a href="../../../com/intellectualcrafters/json/JSONTokener.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/JSONStringer.html" target="_top">Frames</a></li>
|
||||
<li><a href="JSONStringer.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><a href="#fields_inherited_from_class_com.intellectualcrafters.json.JSONWriter">Field</a> |
|
||||
</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>
|
764
doc/com/intellectualcrafters/json/JSONTokener.html
Normal file
764
doc/com/intellectualcrafters/json/JSONTokener.html
Normal file
@ -0,0 +1,764 @@
|
||||
<!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:55 CET 2014 -->
|
||||
<title>JSONTokener</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 = "JSONTokener";
|
||||
}
|
||||
//-->
|
||||
</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><a href="../../../com/intellectualcrafters/json/JSONStringer.html"
|
||||
title="class in com.intellectualcrafters.json"><span class="strong">Prev Class</span></a></li>
|
||||
<li><a href="../../../com/intellectualcrafters/json/JSONWriter.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/JSONTokener.html" target="_top">Frames</a></li>
|
||||
<li><a href="JSONTokener.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 JSONTokener" class="title">Class JSONTokener</h2>
|
||||
</div>
|
||||
<div class="contentContainer">
|
||||
<ul class="inheritance">
|
||||
<li>java.lang.Object</li>
|
||||
<li>
|
||||
<ul class="inheritance">
|
||||
<li>com.intellectualcrafters.json.JSONTokener</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="description">
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<dl>
|
||||
<dt>Direct Known Subclasses:</dt>
|
||||
<dd><a href="../../../com/intellectualcrafters/json/HTTPTokener.html"
|
||||
title="class in com.intellectualcrafters.json">HTTPTokener</a>, <a
|
||||
href="../../../com/intellectualcrafters/json/XMLTokener.html"
|
||||
title="class in com.intellectualcrafters.json">XMLTokener</a></dd>
|
||||
</dl>
|
||||
<hr>
|
||||
<br>
|
||||
<pre>public class <span class="strong">JSONTokener</span>
|
||||
extends java.lang.Object</pre>
|
||||
<div class="block">A JSONTokener takes a source string and extracts characters and tokens from
|
||||
it. It is used by the JSONObject and JSONArray constructors to parse
|
||||
JSON source strings.
|
||||
</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/JSONTokener.html#JSONTokener(java.io.InputStream)">JSONTokener</a></strong>(java.io.InputStream inputStream)</code>
|
||||
|
||||
<div class="block">Construct a JSONTokener from an InputStream.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<td class="colOne"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/JSONTokener.html#JSONTokener(java.io.Reader)">JSONTokener</a></strong>(java.io.Reader reader)</code>
|
||||
|
||||
<div class="block">Construct a JSONTokener from a Reader.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<td class="colOne"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/JSONTokener.html#JSONTokener(java.lang.String)">JSONTokener</a></strong>(java.lang.String s)</code>
|
||||
|
||||
<div class="block">Construct a JSONTokener from a string.</div>
|
||||
</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>void</code></td>
|
||||
<td class="colLast"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/JSONTokener.html#back()">back</a></strong>()</code>
|
||||
|
||||
<div class="block">Back up one character.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<td class="colFirst"><code>static int</code></td>
|
||||
<td class="colLast"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/JSONTokener.html#dehexchar(char)">dehexchar</a></strong>(char c)</code>
|
||||
|
||||
<div class="block">Get the hex value of a character (base16).</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><code>boolean</code></td>
|
||||
<td class="colLast"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/JSONTokener.html#end()">end</a></strong>()</code>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<td class="colFirst"><code>boolean</code></td>
|
||||
<td class="colLast"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/JSONTokener.html#more()">more</a></strong>()</code>
|
||||
|
||||
<div class="block">Determine if the source string still contains characters that next()
|
||||
can consume.
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><code>char</code></td>
|
||||
<td class="colLast"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/JSONTokener.html#next()">next</a></strong>()</code>
|
||||
|
||||
<div class="block">Get the next character in the source string.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<td class="colFirst"><code>char</code></td>
|
||||
<td class="colLast"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/JSONTokener.html#next(char)">next</a></strong>(char c)</code>
|
||||
|
||||
<div class="block">Consume the next character, and check that it matches a specified
|
||||
character.
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><code>java.lang.String</code></td>
|
||||
<td class="colLast"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/JSONTokener.html#next(int)">next</a></strong>(int n)</code>
|
||||
|
||||
<div class="block">Get the next n characters.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<td class="colFirst"><code>char</code></td>
|
||||
<td class="colLast"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/JSONTokener.html#nextClean()">nextClean</a></strong>()</code>
|
||||
|
||||
<div class="block">Get the next char in the string, skipping whitespace.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><code>java.lang.String</code></td>
|
||||
<td class="colLast"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/JSONTokener.html#nextString(char)">nextString</a></strong>(char quote)</code>
|
||||
|
||||
<div class="block">Return the characters up to the next close quote character.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<td class="colFirst"><code>java.lang.String</code></td>
|
||||
<td class="colLast"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/JSONTokener.html#nextTo(char)">nextTo</a></strong>(char delimiter)</code>
|
||||
|
||||
<div class="block">Get the text up but not including the specified character or the
|
||||
end of line, whichever comes first.
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><code>java.lang.String</code></td>
|
||||
<td class="colLast"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/JSONTokener.html#nextTo(java.lang.String)">nextTo</a></strong>(java.lang.String delimiters)</code>
|
||||
|
||||
<div class="block">Get the text up but not including one of the specified delimiter
|
||||
characters or the end of line, whichever comes first.
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<td class="colFirst"><code>java.lang.Object</code></td>
|
||||
<td class="colLast"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/JSONTokener.html#nextValue()">nextValue</a></strong>()</code>
|
||||
|
||||
<div class="block">Get the next value.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><code>char</code></td>
|
||||
<td class="colLast"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/JSONTokener.html#skipTo(char)">skipTo</a></strong>(char to)</code>
|
||||
|
||||
<div class="block">Skip characters until the next character is the requested
|
||||
character.
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<td class="colFirst"><code><a
|
||||
href="../../../com/intellectualcrafters/json/JSONException.html"
|
||||
title="class in com.intellectualcrafters.json">JSONException</a></code></td>
|
||||
<td class="colLast"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/JSONTokener.html#syntaxError(java.lang.String)">syntaxError</a></strong>(java.lang.String message)</code>
|
||||
|
||||
<div class="block">Make a JSONException to signal a syntax error.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><code>java.lang.String</code></td>
|
||||
<td class="colLast"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/JSONTokener.html#toString()">toString</a></strong>()</code>
|
||||
|
||||
<div class="block">Make a printable string of this JSONTokener.</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, 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="JSONTokener(java.io.Reader)">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>JSONTokener</h4>
|
||||
<pre>public JSONTokener(java.io.Reader reader)</pre>
|
||||
<div class="block">Construct a JSONTokener from a Reader.</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Parameters:</span></dt>
|
||||
<dd><code>reader</code> - A reader.</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="JSONTokener(java.io.InputStream)">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>JSONTokener</h4>
|
||||
<pre>public JSONTokener(java.io.InputStream inputStream)
|
||||
throws <a href="../../../com/intellectualcrafters/json/JSONException.html"
|
||||
title="class in com.intellectualcrafters.json">JSONException</a></pre>
|
||||
<div class="block">Construct a JSONTokener from an InputStream.</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Parameters:</span></dt>
|
||||
<dd><code>inputStream</code> - The source.</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="JSONTokener(java.lang.String)">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockListLast">
|
||||
<li class="blockList">
|
||||
<h4>JSONTokener</h4>
|
||||
<pre>public JSONTokener(java.lang.String s)</pre>
|
||||
<div class="block">Construct a JSONTokener from a string.</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Parameters:</span></dt>
|
||||
<dd><code>s</code> - A source string.</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- ============ METHOD DETAIL ========== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="method_detail">
|
||||
<!-- -->
|
||||
</a>
|
||||
|
||||
<h3>Method Detail</h3>
|
||||
<a name="dehexchar(char)">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>dehexchar</h4>
|
||||
<pre>public static int dehexchar(char c)</pre>
|
||||
<div class="block">Get the hex value of a character (base16).</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Parameters:</span></dt>
|
||||
<dd><code>c</code> - A character between '0' and '9' or between 'A' and 'F' or
|
||||
between 'a' and 'f'.
|
||||
</dd>
|
||||
<dt><span class="strong">Returns:</span></dt>
|
||||
<dd>An int between 0 and 15, or -1 if c was not a hex digit.</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="back()">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>back</h4>
|
||||
<pre>public void back()
|
||||
throws <a href="../../../com/intellectualcrafters/json/JSONException.html"
|
||||
title="class in com.intellectualcrafters.json">JSONException</a></pre>
|
||||
<div class="block">Back up one character. This provides a sort of lookahead capability,
|
||||
so that you can test for a digit or letter before attempting to parse
|
||||
the next number or identifier.
|
||||
</div>
|
||||
<dl>
|
||||
<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="end()">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>end</h4>
|
||||
<pre>public boolean end()</pre>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="more()">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>more</h4>
|
||||
<pre>public boolean more()
|
||||
throws <a href="../../../com/intellectualcrafters/json/JSONException.html"
|
||||
title="class in com.intellectualcrafters.json">JSONException</a></pre>
|
||||
<div class="block">Determine if the source string still contains characters that next()
|
||||
can consume.
|
||||
</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Returns:</span></dt>
|
||||
<dd>true if not yet at the end of the source.</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="next()">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>next</h4>
|
||||
<pre>public char next()
|
||||
throws <a href="../../../com/intellectualcrafters/json/JSONException.html"
|
||||
title="class in com.intellectualcrafters.json">JSONException</a></pre>
|
||||
<div class="block">Get the next character in the source string.</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Returns:</span></dt>
|
||||
<dd>The next character, or 0 if past the end of the source string.</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="next(char)">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>next</h4>
|
||||
<pre>public char next(char c)
|
||||
throws <a href="../../../com/intellectualcrafters/json/JSONException.html"
|
||||
title="class in com.intellectualcrafters.json">JSONException</a></pre>
|
||||
<div class="block">Consume the next character, and check that it matches a specified
|
||||
character.
|
||||
</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Parameters:</span></dt>
|
||||
<dd><code>c</code> - The character to match.</dd>
|
||||
<dt><span class="strong">Returns:</span></dt>
|
||||
<dd>The character.</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> - if the character does
|
||||
not match.
|
||||
</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="next(int)">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>next</h4>
|
||||
<pre>public java.lang.String next(int n)
|
||||
throws <a href="../../../com/intellectualcrafters/json/JSONException.html"
|
||||
title="class in com.intellectualcrafters.json">JSONException</a></pre>
|
||||
<div class="block">Get the next n characters.</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Parameters:</span></dt>
|
||||
<dd><code>n</code> - The number of characters to take.</dd>
|
||||
<dt><span class="strong">Returns:</span></dt>
|
||||
<dd>A string of n characters.</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> - Substring bounds
|
||||
error if there are not
|
||||
n characters remaining in the source string.
|
||||
</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="nextClean()">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>nextClean</h4>
|
||||
<pre>public char nextClean()
|
||||
throws <a href="../../../com/intellectualcrafters/json/JSONException.html"
|
||||
title="class in com.intellectualcrafters.json">JSONException</a></pre>
|
||||
<div class="block">Get the next char in the string, skipping whitespace.</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Returns:</span></dt>
|
||||
<dd>A character, or 0 if there are no more characters.</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="nextString(char)">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>nextString</h4>
|
||||
<pre>public java.lang.String nextString(char quote)
|
||||
throws <a href="../../../com/intellectualcrafters/json/JSONException.html"
|
||||
title="class in com.intellectualcrafters.json">JSONException</a></pre>
|
||||
<div class="block">Return the characters up to the next close quote character.
|
||||
Backslash processing is done. The formal JSON format does not
|
||||
allow strings in single quotes, but an implementation is allowed to
|
||||
accept them.
|
||||
</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Parameters:</span></dt>
|
||||
<dd><code>quote</code> - The quoting character, either <code>"</code>
|
||||
|
||||
<small>(double quote)</small>
|
||||
or <code>'</code>
|
||||
|
||||
<small>(single quote)</small>
|
||||
.
|
||||
</dd>
|
||||
<dt><span class="strong">Returns:</span></dt>
|
||||
<dd>A String.</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> - Unterminated string.
|
||||
</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="nextTo(char)">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>nextTo</h4>
|
||||
<pre>public java.lang.String nextTo(char delimiter)
|
||||
throws <a href="../../../com/intellectualcrafters/json/JSONException.html"
|
||||
title="class in com.intellectualcrafters.json">JSONException</a></pre>
|
||||
<div class="block">Get the text up but not including the specified character or the
|
||||
end of line, whichever comes first.
|
||||
</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Parameters:</span></dt>
|
||||
<dd><code>delimiter</code> - A delimiter character.</dd>
|
||||
<dt><span class="strong">Returns:</span></dt>
|
||||
<dd>A string.</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="nextTo(java.lang.String)">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>nextTo</h4>
|
||||
<pre>public java.lang.String nextTo(java.lang.String delimiters)
|
||||
throws <a href="../../../com/intellectualcrafters/json/JSONException.html"
|
||||
title="class in com.intellectualcrafters.json">JSONException</a></pre>
|
||||
<div class="block">Get the text up but not including one of the specified delimiter
|
||||
characters or the end of line, whichever comes first.
|
||||
</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Parameters:</span></dt>
|
||||
<dd><code>delimiters</code> - A set of delimiter characters.</dd>
|
||||
<dt><span class="strong">Returns:</span></dt>
|
||||
<dd>A string, trimmed.</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="nextValue()">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>nextValue</h4>
|
||||
<pre>public java.lang.Object nextValue()
|
||||
throws <a href="../../../com/intellectualcrafters/json/JSONException.html"
|
||||
title="class in com.intellectualcrafters.json">JSONException</a></pre>
|
||||
<div class="block">Get the next value. The value can be a Boolean, Double, Integer,
|
||||
JSONArray, JSONObject, Long, or String, or the JSONObject.NULL object.
|
||||
</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Returns:</span></dt>
|
||||
<dd>An object.</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> - If syntax error.
|
||||
</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="skipTo(char)">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>skipTo</h4>
|
||||
<pre>public char skipTo(char to)
|
||||
throws <a href="../../../com/intellectualcrafters/json/JSONException.html"
|
||||
title="class in com.intellectualcrafters.json">JSONException</a></pre>
|
||||
<div class="block">Skip characters until the next character is the requested character.
|
||||
If the requested character is not found, no characters are skipped.
|
||||
</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Parameters:</span></dt>
|
||||
<dd><code>to</code> - A character to skip to.</dd>
|
||||
<dt><span class="strong">Returns:</span></dt>
|
||||
<dd>The requested character, or zero if the requested character
|
||||
is not found.
|
||||
</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="syntaxError(java.lang.String)">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>syntaxError</h4>
|
||||
<pre>public <a href="../../../com/intellectualcrafters/json/JSONException.html"
|
||||
title="class in com.intellectualcrafters.json">JSONException</a> syntaxError(java.lang.String message)</pre>
|
||||
<div class="block">Make a JSONException to signal a syntax error.</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Parameters:</span></dt>
|
||||
<dd><code>message</code> - The error message.</dd>
|
||||
<dt><span class="strong">Returns:</span></dt>
|
||||
<dd>A JSONException object, suitable for throwing</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="toString()">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockListLast">
|
||||
<li class="blockList">
|
||||
<h4>toString</h4>
|
||||
<pre>public java.lang.String toString()</pre>
|
||||
<div class="block">Make a printable string of this JSONTokener.</div>
|
||||
<dl>
|
||||
<dt><strong>Overrides:</strong></dt>
|
||||
<dd><code>toString</code> in class <code>java.lang.Object</code></dd>
|
||||
<dt><span class="strong">Returns:</span></dt>
|
||||
<dd>" at {index} [character {character} line {line}]"</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><a href="../../../com/intellectualcrafters/json/JSONStringer.html"
|
||||
title="class in com.intellectualcrafters.json"><span class="strong">Prev Class</span></a></li>
|
||||
<li><a href="../../../com/intellectualcrafters/json/JSONWriter.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/JSONTokener.html" target="_top">Frames</a></li>
|
||||
<li><a href="JSONTokener.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>
|
681
doc/com/intellectualcrafters/json/JSONWriter.html
Normal file
681
doc/com/intellectualcrafters/json/JSONWriter.html
Normal file
@ -0,0 +1,681 @@
|
||||
<!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:55 CET 2014 -->
|
||||
<title>JSONWriter</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 = "JSONWriter";
|
||||
}
|
||||
//-->
|
||||
</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><a href="../../../com/intellectualcrafters/json/JSONTokener.html"
|
||||
title="class in com.intellectualcrafters.json"><span class="strong">Prev Class</span></a></li>
|
||||
<li><a href="../../../com/intellectualcrafters/json/Kim.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/JSONWriter.html" target="_top">Frames</a></li>
|
||||
<li><a href="JSONWriter.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><a href="#field_summary">Field</a> | </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><a href="#field_detail">Field</a> | </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 JSONWriter" class="title">Class JSONWriter</h2>
|
||||
</div>
|
||||
<div class="contentContainer">
|
||||
<ul class="inheritance">
|
||||
<li>java.lang.Object</li>
|
||||
<li>
|
||||
<ul class="inheritance">
|
||||
<li>com.intellectualcrafters.json.JSONWriter</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="description">
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<dl>
|
||||
<dt>Direct Known Subclasses:</dt>
|
||||
<dd><a href="../../../com/intellectualcrafters/json/JSONStringer.html"
|
||||
title="class in com.intellectualcrafters.json">JSONStringer</a></dd>
|
||||
</dl>
|
||||
<hr>
|
||||
<br>
|
||||
<pre>public class <span class="strong">JSONWriter</span>
|
||||
extends java.lang.Object</pre>
|
||||
<div class="block">JSONWriter provides a quick and convenient way of producing JSON text.
|
||||
The texts produced strictly conform to JSON syntax rules. No whitespace is
|
||||
added, so the results are ready for transmission or storage. Each instance of
|
||||
JSONWriter can produce one JSON text.
|
||||
<p/>
|
||||
A JSONWriter instance provides a <code>value</code> method for appending
|
||||
values to the text, and a <code>key</code> method for adding keys before
|
||||
values in objects. There are <code>array</code> and <code>endArray</code>
|
||||
methods that make and bound array values, and <code>object</code> and
|
||||
<code>endObject</code> methods which make and bound object values. All of
|
||||
these methods return the JSONWriter instance, permitting a cascade style. For
|
||||
example,
|
||||
<p/>
|
||||
<pre>
|
||||
new JSONWriter(myWriter).object().key("JSON").value("Hello, World!").endObject();
|
||||
</pre>
|
||||
<p/>
|
||||
which writes
|
||||
<p/>
|
||||
<pre>
|
||||
{"JSON":"Hello, World!"}
|
||||
</pre>
|
||||
<p/>
|
||||
The first method called must be <code>array</code> or <code>object</code>.
|
||||
There are no methods for adding commas or colons. JSONWriter adds them for
|
||||
you. Objects and arrays can be nested up to 20 levels deep.
|
||||
<p/>
|
||||
This can sometimes be easier than using a JSONObject to build a string.
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="summary">
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<!-- =========== FIELD SUMMARY =========== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="field_summary">
|
||||
<!-- -->
|
||||
</a>
|
||||
|
||||
<h3>Field Summary</h3>
|
||||
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0"
|
||||
summary="Field Summary table, listing fields, and an explanation">
|
||||
<caption><span>Fields</span><span class="tabEnd"> </span></caption>
|
||||
<tr>
|
||||
<th class="colFirst" scope="col">Modifier and Type</th>
|
||||
<th class="colLast" scope="col">Field and Description</th>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><code>protected char</code></td>
|
||||
<td class="colLast"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/JSONWriter.html#mode">mode</a></strong></code>
|
||||
|
||||
<div class="block">The current mode.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<td class="colFirst"><code>protected java.io.Writer</code></td>
|
||||
<td class="colLast"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/JSONWriter.html#writer">writer</a></strong></code>
|
||||
|
||||
<div class="block">The writer that will receive the output.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- ======== 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/JSONWriter.html#JSONWriter(java.io.Writer)">JSONWriter</a></strong>(java.io.Writer w)</code>
|
||||
|
||||
<div class="block">Make a fresh JSONWriter.</div>
|
||||
</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><a href="../../../com/intellectualcrafters/json/JSONWriter.html"
|
||||
title="class in com.intellectualcrafters.json">JSONWriter</a></code>
|
||||
</td>
|
||||
<td class="colLast"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/JSONWriter.html#array()">array</a></strong>()</code>
|
||||
|
||||
<div class="block">Begin appending a new array.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<td class="colFirst"><code><a href="../../../com/intellectualcrafters/json/JSONWriter.html"
|
||||
title="class in com.intellectualcrafters.json">JSONWriter</a></code>
|
||||
</td>
|
||||
<td class="colLast"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/JSONWriter.html#endArray()">endArray</a></strong>()</code>
|
||||
|
||||
<div class="block">End an array.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><code><a href="../../../com/intellectualcrafters/json/JSONWriter.html"
|
||||
title="class in com.intellectualcrafters.json">JSONWriter</a></code>
|
||||
</td>
|
||||
<td class="colLast"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/JSONWriter.html#endObject()">endObject</a></strong>()</code>
|
||||
|
||||
<div class="block">End an object.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<td class="colFirst"><code><a href="../../../com/intellectualcrafters/json/JSONWriter.html"
|
||||
title="class in com.intellectualcrafters.json">JSONWriter</a></code>
|
||||
</td>
|
||||
<td class="colLast"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/JSONWriter.html#key(java.lang.String)">key</a></strong>(java.lang.String string)</code>
|
||||
|
||||
<div class="block">Append a key.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><code><a href="../../../com/intellectualcrafters/json/JSONWriter.html"
|
||||
title="class in com.intellectualcrafters.json">JSONWriter</a></code>
|
||||
</td>
|
||||
<td class="colLast"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/JSONWriter.html#object()">object</a></strong>()</code>
|
||||
|
||||
<div class="block">Begin appending a new object.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<td class="colFirst"><code><a href="../../../com/intellectualcrafters/json/JSONWriter.html"
|
||||
title="class in com.intellectualcrafters.json">JSONWriter</a></code>
|
||||
</td>
|
||||
<td class="colLast"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/JSONWriter.html#value(boolean)">value</a></strong>(boolean b)</code>
|
||||
|
||||
<div class="block">Append either the value <code>true</code> or the value
|
||||
<code>false</code>
|
||||
.
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><code><a href="../../../com/intellectualcrafters/json/JSONWriter.html"
|
||||
title="class in com.intellectualcrafters.json">JSONWriter</a></code>
|
||||
</td>
|
||||
<td class="colLast"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/JSONWriter.html#value(double)">value</a></strong>(double d)</code>
|
||||
|
||||
<div class="block">Append a double value.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<td class="colFirst"><code><a href="../../../com/intellectualcrafters/json/JSONWriter.html"
|
||||
title="class in com.intellectualcrafters.json">JSONWriter</a></code>
|
||||
</td>
|
||||
<td class="colLast"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/JSONWriter.html#value(long)">value</a></strong>(long l)</code>
|
||||
|
||||
<div class="block">Append a long value.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><code><a href="../../../com/intellectualcrafters/json/JSONWriter.html"
|
||||
title="class in com.intellectualcrafters.json">JSONWriter</a></code>
|
||||
</td>
|
||||
<td class="colLast"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/JSONWriter.html#value(java.lang.Object)">value</a></strong>(java.lang.Object object)</code>
|
||||
|
||||
<div class="block">Append an object value.</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">
|
||||
<!-- ============ FIELD DETAIL =========== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="field_detail">
|
||||
<!-- -->
|
||||
</a>
|
||||
|
||||
<h3>Field Detail</h3>
|
||||
<a name="mode">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>mode</h4>
|
||||
<pre>protected char mode</pre>
|
||||
<div class="block">The current mode. Values:
|
||||
'a' (array),
|
||||
'd' (done),
|
||||
'i' (initial),
|
||||
'k' (key),
|
||||
'o' (object).
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="writer">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockListLast">
|
||||
<li class="blockList">
|
||||
<h4>writer</h4>
|
||||
<pre>protected java.io.Writer writer</pre>
|
||||
<div class="block">The writer that will receive the output.</div>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="constructor_detail">
|
||||
<!-- -->
|
||||
</a>
|
||||
|
||||
<h3>Constructor Detail</h3>
|
||||
<a name="JSONWriter(java.io.Writer)">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockListLast">
|
||||
<li class="blockList">
|
||||
<h4>JSONWriter</h4>
|
||||
<pre>public JSONWriter(java.io.Writer w)</pre>
|
||||
<div class="block">Make a fresh JSONWriter. It can be used to build one JSON text.</div>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- ============ METHOD DETAIL ========== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="method_detail">
|
||||
<!-- -->
|
||||
</a>
|
||||
|
||||
<h3>Method Detail</h3>
|
||||
<a name="array()">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>array</h4>
|
||||
<pre>public <a href="../../../com/intellectualcrafters/json/JSONWriter.html"
|
||||
title="class in com.intellectualcrafters.json">JSONWriter</a> array()
|
||||
throws <a href="../../../com/intellectualcrafters/json/JSONException.html"
|
||||
title="class in com.intellectualcrafters.json">JSONException</a></pre>
|
||||
<div class="block">Begin appending a new array. All values until the balancing
|
||||
<code>endArray</code> will be appended to this array. The
|
||||
<code>endArray</code> method must be called to mark the array's end.
|
||||
</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Returns:</span></dt>
|
||||
<dd>this</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> - If the
|
||||
nesting is too deep, or if the object is
|
||||
started in the wrong place (for example as a key or after the
|
||||
end of the
|
||||
outermost array or object).
|
||||
</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="endArray()">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>endArray</h4>
|
||||
<pre>public <a href="../../../com/intellectualcrafters/json/JSONWriter.html"
|
||||
title="class in com.intellectualcrafters.json">JSONWriter</a> endArray()
|
||||
throws <a href="../../../com/intellectualcrafters/json/JSONException.html"
|
||||
title="class in com.intellectualcrafters.json">JSONException</a></pre>
|
||||
<div class="block">End an array. This method most be called to balance calls to
|
||||
<code>array</code>.
|
||||
</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Returns:</span></dt>
|
||||
<dd>this</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> - If
|
||||
incorrectly nested.
|
||||
</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="endObject()">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>endObject</h4>
|
||||
<pre>public <a href="../../../com/intellectualcrafters/json/JSONWriter.html"
|
||||
title="class in com.intellectualcrafters.json">JSONWriter</a> endObject()
|
||||
throws <a href="../../../com/intellectualcrafters/json/JSONException.html"
|
||||
title="class in com.intellectualcrafters.json">JSONException</a></pre>
|
||||
<div class="block">End an object. This method most be called to balance calls to
|
||||
<code>object</code>.
|
||||
</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Returns:</span></dt>
|
||||
<dd>this</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> - If
|
||||
incorrectly nested.
|
||||
</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="key(java.lang.String)">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>key</h4>
|
||||
<pre>public <a href="../../../com/intellectualcrafters/json/JSONWriter.html"
|
||||
title="class in com.intellectualcrafters.json">JSONWriter</a> key(java.lang.String string)
|
||||
throws <a href="../../../com/intellectualcrafters/json/JSONException.html"
|
||||
title="class in com.intellectualcrafters.json">JSONException</a></pre>
|
||||
<div class="block">Append a key. The key will be associated with the next value. In an
|
||||
object, every value must be preceded by a key.
|
||||
</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Parameters:</span></dt>
|
||||
<dd><code>string</code> - A key string.</dd>
|
||||
<dt><span class="strong">Returns:</span></dt>
|
||||
<dd>this</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> - If the key is
|
||||
out of place. For example, keys
|
||||
do not belong in arrays or if the key is null.
|
||||
</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="object()">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>object</h4>
|
||||
<pre>public <a href="../../../com/intellectualcrafters/json/JSONWriter.html"
|
||||
title="class in com.intellectualcrafters.json">JSONWriter</a> object()
|
||||
throws <a href="../../../com/intellectualcrafters/json/JSONException.html"
|
||||
title="class in com.intellectualcrafters.json">JSONException</a></pre>
|
||||
<div class="block">Begin appending a new object. All keys and values until the balancing
|
||||
<code>endObject</code> will be appended to this object. The
|
||||
<code>endObject</code> method must be called to mark the object's end.
|
||||
</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Returns:</span></dt>
|
||||
<dd>this</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> - If the
|
||||
nesting is too deep, or if the object is
|
||||
started in the wrong place (for example as a key or after the
|
||||
end of the
|
||||
outermost array or object).
|
||||
</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="value(boolean)">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>value</h4>
|
||||
<pre>public <a href="../../../com/intellectualcrafters/json/JSONWriter.html"
|
||||
title="class in com.intellectualcrafters.json">JSONWriter</a> value(boolean b)
|
||||
throws <a href="../../../com/intellectualcrafters/json/JSONException.html"
|
||||
title="class in com.intellectualcrafters.json">JSONException</a></pre>
|
||||
<div class="block">Append either the value <code>true</code> or the value <code>false</code>
|
||||
.
|
||||
</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Parameters:</span></dt>
|
||||
<dd><code>b</code> - A boolean.</dd>
|
||||
<dt><span class="strong">Returns:</span></dt>
|
||||
<dd>this</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="value(double)">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>value</h4>
|
||||
<pre>public <a href="../../../com/intellectualcrafters/json/JSONWriter.html"
|
||||
title="class in com.intellectualcrafters.json">JSONWriter</a> value(double d)
|
||||
throws <a href="../../../com/intellectualcrafters/json/JSONException.html"
|
||||
title="class in com.intellectualcrafters.json">JSONException</a></pre>
|
||||
<div class="block">Append a double value.</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Parameters:</span></dt>
|
||||
<dd><code>d</code> - A double.</dd>
|
||||
<dt><span class="strong">Returns:</span></dt>
|
||||
<dd>this</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> - If the number
|
||||
is not finite.
|
||||
</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="value(long)">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>value</h4>
|
||||
<pre>public <a href="../../../com/intellectualcrafters/json/JSONWriter.html"
|
||||
title="class in com.intellectualcrafters.json">JSONWriter</a> value(long l)
|
||||
throws <a href="../../../com/intellectualcrafters/json/JSONException.html"
|
||||
title="class in com.intellectualcrafters.json">JSONException</a></pre>
|
||||
<div class="block">Append a long value.</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Parameters:</span></dt>
|
||||
<dd><code>l</code> - A long.</dd>
|
||||
<dt><span class="strong">Returns:</span></dt>
|
||||
<dd>this</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="value(java.lang.Object)">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockListLast">
|
||||
<li class="blockList">
|
||||
<h4>value</h4>
|
||||
<pre>public <a href="../../../com/intellectualcrafters/json/JSONWriter.html"
|
||||
title="class in com.intellectualcrafters.json">JSONWriter</a> value(java.lang.Object object)
|
||||
throws <a href="../../../com/intellectualcrafters/json/JSONException.html"
|
||||
title="class in com.intellectualcrafters.json">JSONException</a></pre>
|
||||
<div class="block">Append an object value.</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Parameters:</span></dt>
|
||||
<dd><code>object</code> - The object to append. It can be null, or a Boolean, Number,
|
||||
String, JSONObject, or JSONArray, or an object that implements
|
||||
JSONString.
|
||||
</dd>
|
||||
<dt><span class="strong">Returns:</span></dt>
|
||||
<dd>this</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> - If the value
|
||||
is out of sequence.
|
||||
</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><a href="../../../com/intellectualcrafters/json/JSONTokener.html"
|
||||
title="class in com.intellectualcrafters.json"><span class="strong">Prev Class</span></a></li>
|
||||
<li><a href="../../../com/intellectualcrafters/json/Kim.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/JSONWriter.html" target="_top">Frames</a></li>
|
||||
<li><a href="JSONWriter.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><a href="#field_summary">Field</a> | </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><a href="#field_detail">Field</a> | </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>
|
640
doc/com/intellectualcrafters/json/Kim.html
Normal file
640
doc/com/intellectualcrafters/json/Kim.html
Normal file
@ -0,0 +1,640 @@
|
||||
<!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:55 CET 2014 -->
|
||||
<title>Kim</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 = "Kim";
|
||||
}
|
||||
//-->
|
||||
</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><a href="../../../com/intellectualcrafters/json/JSONWriter.html"
|
||||
title="class in com.intellectualcrafters.json"><span class="strong">Prev Class</span></a></li>
|
||||
<li><a href="../../../com/intellectualcrafters/json/Property.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/Kim.html" target="_top">Frames</a></li>
|
||||
<li><a href="Kim.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><a href="#field_summary">Field</a> | </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><a href="#field_detail">Field</a> | </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 Kim" class="title">Class Kim</h2>
|
||||
</div>
|
||||
<div class="contentContainer">
|
||||
<ul class="inheritance">
|
||||
<li>java.lang.Object</li>
|
||||
<li>
|
||||
<ul class="inheritance">
|
||||
<li>com.intellectualcrafters.json.Kim</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="description">
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<hr>
|
||||
<br>
|
||||
<pre>public class <span class="strong">Kim</span>
|
||||
extends java.lang.Object</pre>
|
||||
<div class="block">Kim makes immutable eight bit Unicode strings. If the MSB of a byte is set,
|
||||
then the next byte is a continuation byte. The last byte of a character
|
||||
never has the MSB reset. Every byte that is not the last byte has the MSB
|
||||
set. Kim stands for "Keep it minimal". A Unicode character is never longer
|
||||
than 3 bytes. Every byte contributes 7 bits to the character. ASCII is
|
||||
unmodified.
|
||||
<p/>
|
||||
Kim UTF-8
|
||||
one byte U+007F U+007F
|
||||
two bytes U+3FFF U+07FF
|
||||
three bytes U+10FFF U+FFFF
|
||||
four bytes U+10FFFF
|
||||
<p/>
|
||||
Characters in the ranges U+0800..U+3FFF and U+10000..U+10FFFF will be one
|
||||
byte smaller when encoded in Kim compared to UTF-8.
|
||||
<p/>
|
||||
Kim is beneficial when using scripts such as Old South Arabian, Aramaic,
|
||||
Avestan, Balinese, Batak, Bopomofo, Buginese, Buhid, Carian, Cherokee,
|
||||
Coptic, Cyrillic, Deseret, Egyptian Hieroglyphs, Ethiopic, Georgian,
|
||||
Glagolitic, Gothic, Hangul Jamo, Hanunoo, Hiragana, Kanbun, Kaithi,
|
||||
Kannada, Katakana, Kharoshthi, Khmer, Lao, Lepcha, Limbu, Lycian, Lydian,
|
||||
Malayalam, Mandaic, Meroitic, Miao, Mongolian, Myanmar, New Tai Lue,
|
||||
Ol Chiki, Old Turkic, Oriya, Osmanya, Pahlavi, Parthian, Phags-Pa,
|
||||
Phoenician, Samaritan, Sharada, Sinhala, Sora Sompeng, Tagalog, Tagbanwa,
|
||||
Takri, Tai Le, Tai Tham, Tamil, Telugu, Thai, Tibetan, Tifinagh, UCAS.
|
||||
<p/>
|
||||
A kim object can be constructed from an ordinary UTF-16 string, or from a
|
||||
byte array. A kim object can produce a UTF-16 string.
|
||||
<p/>
|
||||
As with UTF-8, it is possible to detect character boundaries within a byte
|
||||
sequence. UTF-8 is one of the world's great inventions. While Kim is more
|
||||
efficient, it is not clear that it is worth the expense of transition.
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="summary">
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<!-- =========== FIELD SUMMARY =========== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="field_summary">
|
||||
<!-- -->
|
||||
</a>
|
||||
|
||||
<h3>Field Summary</h3>
|
||||
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0"
|
||||
summary="Field Summary table, listing fields, and an explanation">
|
||||
<caption><span>Fields</span><span class="tabEnd"> </span></caption>
|
||||
<tr>
|
||||
<th class="colFirst" scope="col">Modifier and Type</th>
|
||||
<th class="colLast" scope="col">Field and Description</th>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><code>int</code></td>
|
||||
<td class="colLast"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/Kim.html#length">length</a></strong></code>
|
||||
|
||||
<div class="block">The number of bytes in the kim.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- ======== 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/Kim.html#Kim(byte[],%20int)">Kim</a></strong>(byte[] bytes,
|
||||
int length)</code>
|
||||
|
||||
<div class="block">Make a kim from a byte array.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<td class="colOne"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/Kim.html#Kim(byte[],%20int,%20int)">Kim</a></strong>(byte[] bytes,
|
||||
int from,
|
||||
int thru)</code>
|
||||
|
||||
<div class="block">Make a kim from a portion of a byte array.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<td class="colOne"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/Kim.html#Kim(com.intellectualcrafters.json.Kim,%20int,%20int)">Kim</a></strong>(<a
|
||||
href="../../../com/intellectualcrafters/json/Kim.html"
|
||||
title="class in com.intellectualcrafters.json">Kim</a> kim,
|
||||
int from,
|
||||
int thru)</code>
|
||||
|
||||
<div class="block">Make a new kim from a substring of an existing kim.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<td class="colOne"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/Kim.html#Kim(java.lang.String)">Kim</a></strong>(java.lang.String string)</code>
|
||||
|
||||
<div class="block">Make a kim from a string.</div>
|
||||
</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>int</code></td>
|
||||
<td class="colLast"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/Kim.html#characterAt(int)">characterAt</a></strong>(int at)</code>
|
||||
|
||||
<div class="block">Returns the character at the specified index.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<td class="colFirst"><code>static int</code></td>
|
||||
<td class="colLast"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/Kim.html#characterSize(int)">characterSize</a></strong>(int character)</code>
|
||||
|
||||
<div class="block">Returns the number of bytes needed to contain the character in Kim
|
||||
format.
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><code>int</code></td>
|
||||
<td class="colLast"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/Kim.html#copy(byte[],%20int)">copy</a></strong>(byte[] bytes,
|
||||
int at)</code>
|
||||
|
||||
<div class="block">Copy the contents of this kim to a byte array.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<td class="colFirst"><code>boolean</code></td>
|
||||
<td class="colLast"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/Kim.html#equals(java.lang.Object)">equals</a></strong>(java.lang.Object obj)</code>
|
||||
|
||||
<div class="block">Two kim objects containing exactly the same bytes in the same order
|
||||
are
|
||||
equal to each other.
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><code>int</code></td>
|
||||
<td class="colLast"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/Kim.html#get(int)">get</a></strong>(int at)</code>
|
||||
|
||||
<div class="block">Get a byte from a kim.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<td class="colFirst"><code>int</code></td>
|
||||
<td class="colLast"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/Kim.html#hashCode()">hashCode</a></strong>()</code>
|
||||
|
||||
<div class="block">Returns a hash code value for the kim.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><code>java.lang.String</code></td>
|
||||
<td class="colLast"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/Kim.html#toString()">toString</a></strong>()</code>
|
||||
|
||||
<div class="block">Produce a UTF-16 String from this kim.</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, finalize, getClass, notify, notifyAll, wait, wait, wait</code></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="details">
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<!-- ============ FIELD DETAIL =========== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="field_detail">
|
||||
<!-- -->
|
||||
</a>
|
||||
|
||||
<h3>Field Detail</h3>
|
||||
<a name="length">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockListLast">
|
||||
<li class="blockList">
|
||||
<h4>length</h4>
|
||||
<pre>public int length</pre>
|
||||
<div class="block">The number of bytes in the kim. The number of bytes can be as much as
|
||||
three times the number of characters.
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="constructor_detail">
|
||||
<!-- -->
|
||||
</a>
|
||||
|
||||
<h3>Constructor Detail</h3>
|
||||
<a name="Kim(byte[], int, int)">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>Kim</h4>
|
||||
<pre>public Kim(byte[] bytes,
|
||||
int from,
|
||||
int thru)</pre>
|
||||
<div class="block">Make a kim from a portion of a byte array.</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Parameters:</span></dt>
|
||||
<dd><code>bytes</code> - A byte array.</dd>
|
||||
<dd><code>from</code> - The index of the first byte.</dd>
|
||||
<dd><code>thru</code> - The index of the last byte plus one.</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="Kim(byte[], int)">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>Kim</h4>
|
||||
<pre>public Kim(byte[] bytes,
|
||||
int length)</pre>
|
||||
<div class="block">Make a kim from a byte array.</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Parameters:</span></dt>
|
||||
<dd><code>bytes</code> - The byte array.</dd>
|
||||
<dd><code>length</code> - The number of bytes.</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="Kim(com.intellectualcrafters.json.Kim, int, int)">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>Kim</h4>
|
||||
<pre>public Kim(<a href="../../../com/intellectualcrafters/json/Kim.html"
|
||||
title="class in com.intellectualcrafters.json">Kim</a> kim,
|
||||
int from,
|
||||
int thru)</pre>
|
||||
<div class="block">Make a new kim from a substring of an existing kim. The coordinates are
|
||||
in byte units, not character units.
|
||||
</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Parameters:</span></dt>
|
||||
<dd><code>kim</code> - The source of bytes.</dd>
|
||||
<dd><code>from</code> - The point at which to take bytes.</dd>
|
||||
<dd><code>thru</code> - The point at which to stop taking bytes.</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="Kim(java.lang.String)">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockListLast">
|
||||
<li class="blockList">
|
||||
<h4>Kim</h4>
|
||||
<pre>public Kim(java.lang.String string)
|
||||
throws <a href="../../../com/intellectualcrafters/json/JSONException.html"
|
||||
title="class in com.intellectualcrafters.json">JSONException</a></pre>
|
||||
<div class="block">Make a kim from a string.</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Parameters:</span></dt>
|
||||
<dd><code>string</code> - The string.</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> - if
|
||||
surrogate pair mismatch.
|
||||
</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- ============ METHOD DETAIL ========== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="method_detail">
|
||||
<!-- -->
|
||||
</a>
|
||||
|
||||
<h3>Method Detail</h3>
|
||||
<a name="characterSize(int)">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>characterSize</h4>
|
||||
<pre>public static int characterSize(int character)
|
||||
throws <a href="../../../com/intellectualcrafters/json/JSONException.html"
|
||||
title="class in com.intellectualcrafters.json">JSONException</a></pre>
|
||||
<div class="block">Returns the number of bytes needed to contain the character in Kim
|
||||
format.
|
||||
</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Parameters:</span></dt>
|
||||
<dd><code>character</code> - a Unicode character between 0 and 0x10FFFF.</dd>
|
||||
<dt><span class="strong">Returns:</span></dt>
|
||||
<dd>1, 2, or 3</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> - if
|
||||
the character is not representable in a kim.
|
||||
</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="characterAt(int)">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>characterAt</h4>
|
||||
<pre>public int characterAt(int at)
|
||||
throws <a href="../../../com/intellectualcrafters/json/JSONException.html"
|
||||
title="class in com.intellectualcrafters.json">JSONException</a></pre>
|
||||
<div class="block">Returns the character at the specified index. The index refers to byte
|
||||
values and ranges from 0 to length - 1. The index of the next character
|
||||
is at index + Kim.characterSize(kim.characterAt(index)).
|
||||
</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Parameters:</span></dt>
|
||||
<dd><code>at</code> - the index of the char value. The first character is at 0.</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> - if at
|
||||
does not point to a valid character.
|
||||
</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="copy(byte[], int)">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>copy</h4>
|
||||
<pre>public int copy(byte[] bytes,
|
||||
int at)</pre>
|
||||
<div class="block">Copy the contents of this kim to a byte array.</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Parameters:</span></dt>
|
||||
<dd><code>bytes</code> - A byte array of sufficient size.</dd>
|
||||
<dd><code>at</code> - The position within the byte array to take the byes.</dd>
|
||||
<dt><span class="strong">Returns:</span></dt>
|
||||
<dd>The position immediately after the copy.</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="equals(java.lang.Object)">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>equals</h4>
|
||||
<pre>public boolean equals(java.lang.Object obj)</pre>
|
||||
<div class="block">Two kim objects containing exactly the same bytes in the same order are
|
||||
equal to each other.
|
||||
</div>
|
||||
<dl>
|
||||
<dt><strong>Overrides:</strong></dt>
|
||||
<dd><code>equals</code> in class <code>java.lang.Object</code></dd>
|
||||
<dt><span class="strong">Parameters:</span></dt>
|
||||
<dd><code>obj</code> - the other kim with which to compare.</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="get(int)">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>get</h4>
|
||||
<pre>public int get(int at)
|
||||
throws <a href="../../../com/intellectualcrafters/json/JSONException.html"
|
||||
title="class in com.intellectualcrafters.json">JSONException</a></pre>
|
||||
<div class="block">Get a byte from a kim.</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Parameters:</span></dt>
|
||||
<dd><code>at</code> - The position of the byte. The first byte is at 0.</dd>
|
||||
<dt><span class="strong">Returns:</span></dt>
|
||||
<dd>The byte.</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> - if
|
||||
there is no byte at that position.
|
||||
</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="hashCode()">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>hashCode</h4>
|
||||
<pre>public int hashCode()</pre>
|
||||
<div class="block">Returns a hash code value for the kim.</div>
|
||||
<dl>
|
||||
<dt><strong>Overrides:</strong></dt>
|
||||
<dd><code>hashCode</code> in class <code>java.lang.Object</code></dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="toString()">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockListLast">
|
||||
<li class="blockList">
|
||||
<h4>toString</h4>
|
||||
<pre>public java.lang.String toString()
|
||||
throws <a href="../../../com/intellectualcrafters/json/JSONException.html"
|
||||
title="class in com.intellectualcrafters.json">JSONException</a></pre>
|
||||
<div class="block">Produce a UTF-16 String from this kim. The number of codepoints in the
|
||||
string will not be greater than the number of bytes in the kim, although
|
||||
it could be less.
|
||||
</div>
|
||||
<dl>
|
||||
<dt><strong>Overrides:</strong></dt>
|
||||
<dd><code>toString</code> in class <code>java.lang.Object</code></dd>
|
||||
<dt><span class="strong">Returns:</span></dt>
|
||||
<dd>The string. A kim memoizes its string representation.</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> - if
|
||||
the kim is not valid.
|
||||
</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><a href="../../../com/intellectualcrafters/json/JSONWriter.html"
|
||||
title="class in com.intellectualcrafters.json"><span class="strong">Prev Class</span></a></li>
|
||||
<li><a href="../../../com/intellectualcrafters/json/Property.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/Kim.html" target="_top">Frames</a></li>
|
||||
<li><a href="Kim.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><a href="#field_summary">Field</a> | </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><a href="#field_detail">Field</a> | </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>
|
324
doc/com/intellectualcrafters/json/Property.html
Normal file
324
doc/com/intellectualcrafters/json/Property.html
Normal file
@ -0,0 +1,324 @@
|
||||
<!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:55 CET 2014 -->
|
||||
<title>Property</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 = "Property";
|
||||
}
|
||||
//-->
|
||||
</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><a href="../../../com/intellectualcrafters/json/Kim.html"
|
||||
title="class in com.intellectualcrafters.json"><span class="strong">Prev Class</span></a></li>
|
||||
<li><a href="../../../com/intellectualcrafters/json/XML.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/Property.html" target="_top">Frames</a></li>
|
||||
<li><a href="Property.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 Property" class="title">Class Property</h2>
|
||||
</div>
|
||||
<div class="contentContainer">
|
||||
<ul class="inheritance">
|
||||
<li>java.lang.Object</li>
|
||||
<li>
|
||||
<ul class="inheritance">
|
||||
<li>com.intellectualcrafters.json.Property</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="description">
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<hr>
|
||||
<br>
|
||||
<pre>public class <span class="strong">Property</span>
|
||||
extends java.lang.Object</pre>
|
||||
<div class="block">Converts a Property file data into JSONObject and back.</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/Property.html#Property()">Property</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/JSONObject.html"
|
||||
title="class in com.intellectualcrafters.json">JSONObject</a></code></td>
|
||||
<td class="colLast"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/Property.html#toJSONObject(java.util.Properties)">toJSONObject</a></strong>(java.util.Properties properties)</code>
|
||||
|
||||
<div class="block">Converts a property file object into a JSONObject.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<td class="colFirst"><code>static java.util.Properties</code></td>
|
||||
<td class="colLast"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/Property.html#toProperties(com.intellectualcrafters.json.JSONObject)">toProperties</a></strong>(<a
|
||||
href="../../../com/intellectualcrafters/json/JSONObject.html"
|
||||
title="class in com.intellectualcrafters.json">JSONObject</a> jo)</code>
|
||||
|
||||
<div class="block">Converts the JSONObject into a property file object.</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="Property()">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockListLast">
|
||||
<li class="blockList">
|
||||
<h4>Property</h4>
|
||||
<pre>public Property()</pre>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- ============ METHOD DETAIL ========== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="method_detail">
|
||||
<!-- -->
|
||||
</a>
|
||||
|
||||
<h3>Method Detail</h3>
|
||||
<a name="toJSONObject(java.util.Properties)">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>toJSONObject</h4>
|
||||
<pre>public static <a href="../../../com/intellectualcrafters/json/JSONObject.html"
|
||||
title="class in com.intellectualcrafters.json">JSONObject</a> toJSONObject(java.util.Properties properties)
|
||||
throws <a href="../../../com/intellectualcrafters/json/JSONException.html"
|
||||
title="class in com.intellectualcrafters.json">JSONException</a></pre>
|
||||
<div class="block">Converts a property file object into a JSONObject. The property file
|
||||
object is a table of name value pairs.
|
||||
</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Parameters:</span></dt>
|
||||
<dd><code>properties</code> - java.util.Properties</dd>
|
||||
<dt><span class="strong">Returns:</span></dt>
|
||||
<dd>JSONObject</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="toProperties(com.intellectualcrafters.json.JSONObject)">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockListLast">
|
||||
<li class="blockList">
|
||||
<h4>toProperties</h4>
|
||||
<pre>public static java.util.Properties toProperties(<a
|
||||
href="../../../com/intellectualcrafters/json/JSONObject.html" title="class in com.intellectualcrafters.json">JSONObject</a> jo)
|
||||
throws <a href="../../../com/intellectualcrafters/json/JSONException.html"
|
||||
title="class in com.intellectualcrafters.json">JSONException</a></pre>
|
||||
<div class="block">Converts the JSONObject into a property file object.</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Parameters:</span></dt>
|
||||
<dd><code>jo</code> - JSONObject</dd>
|
||||
<dt><span class="strong">Returns:</span></dt>
|
||||
<dd>java.util.Properties</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><a href="../../../com/intellectualcrafters/json/Kim.html"
|
||||
title="class in com.intellectualcrafters.json"><span class="strong">Prev Class</span></a></li>
|
||||
<li><a href="../../../com/intellectualcrafters/json/XML.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/Property.html" target="_top">Frames</a></li>
|
||||
<li><a href="Property.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>
|
657
doc/com/intellectualcrafters/json/XML.html
Normal file
657
doc/com/intellectualcrafters/json/XML.html
Normal file
@ -0,0 +1,657 @@
|
||||
<!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:55 CET 2014 -->
|
||||
<title>XML</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 = "XML";
|
||||
}
|
||||
//-->
|
||||
</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><a href="../../../com/intellectualcrafters/json/Property.html"
|
||||
title="class in com.intellectualcrafters.json"><span class="strong">Prev Class</span></a></li>
|
||||
<li><a href="../../../com/intellectualcrafters/json/XMLTokener.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/XML.html" target="_top">Frames</a></li>
|
||||
<li><a href="XML.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><a href="#field_summary">Field</a> | </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><a href="#field_detail">Field</a> | </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 XML" class="title">Class XML</h2>
|
||||
</div>
|
||||
<div class="contentContainer">
|
||||
<ul class="inheritance">
|
||||
<li>java.lang.Object</li>
|
||||
<li>
|
||||
<ul class="inheritance">
|
||||
<li>com.intellectualcrafters.json.XML</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="description">
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<hr>
|
||||
<br>
|
||||
<pre>public class <span class="strong">XML</span>
|
||||
extends java.lang.Object</pre>
|
||||
<div class="block">This provides static methods to convert an XML text into a JSONObject,
|
||||
and to covert a JSONObject into an XML text.
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="summary">
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<!-- =========== FIELD SUMMARY =========== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="field_summary">
|
||||
<!-- -->
|
||||
</a>
|
||||
|
||||
<h3>Field Summary</h3>
|
||||
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0"
|
||||
summary="Field Summary table, listing fields, and an explanation">
|
||||
<caption><span>Fields</span><span class="tabEnd"> </span></caption>
|
||||
<tr>
|
||||
<th class="colFirst" scope="col">Modifier and Type</th>
|
||||
<th class="colLast" scope="col">Field and Description</th>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><code>static java.lang.Character</code></td>
|
||||
<td class="colLast"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/XML.html#AMP">AMP</a></strong></code>
|
||||
|
||||
<div class="block">The Character '&'.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<td class="colFirst"><code>static java.lang.Character</code></td>
|
||||
<td class="colLast"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/XML.html#APOS">APOS</a></strong></code>
|
||||
|
||||
<div class="block">The Character '''.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><code>static java.lang.Character</code></td>
|
||||
<td class="colLast"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/XML.html#BANG">BANG</a></strong></code>
|
||||
|
||||
<div class="block">The Character '!'.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<td class="colFirst"><code>static java.lang.Character</code></td>
|
||||
<td class="colLast"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/XML.html#EQ">EQ</a></strong></code>
|
||||
|
||||
<div class="block">The Character '='.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><code>static java.lang.Character</code></td>
|
||||
<td class="colLast"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/XML.html#GT">GT</a></strong></code>
|
||||
|
||||
<div class="block">The Character '>'.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<td class="colFirst"><code>static java.lang.Character</code></td>
|
||||
<td class="colLast"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/XML.html#LT">LT</a></strong></code>
|
||||
|
||||
<div class="block">The Character '<'.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><code>static java.lang.Character</code></td>
|
||||
<td class="colLast"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/XML.html#QUEST">QUEST</a></strong></code>
|
||||
|
||||
<div class="block">The Character '?'.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<td class="colFirst"><code>static java.lang.Character</code></td>
|
||||
<td class="colLast"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/XML.html#QUOT">QUOT</a></strong></code>
|
||||
|
||||
<div class="block">The Character '"'.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><code>static java.lang.Character</code></td>
|
||||
<td class="colLast"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/XML.html#SLASH">SLASH</a></strong></code>
|
||||
|
||||
<div class="block">The Character '/'.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- ======== 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/XML.html#XML()">XML</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 java.lang.String</code></td>
|
||||
<td class="colLast"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/XML.html#escape(java.lang.String)">escape</a></strong>(java.lang.String string)</code>
|
||||
|
||||
<div class="block">Replace special characters with XML escapes:
|
||||
<p/>
|
||||
|
||||
&
|
||||
<small>(ampersand)</small>
|
||||
is replaced by &amp;
|
||||
<
|
||||
<small>(less than)</small>
|
||||
is replaced by &lt;
|
||||
>
|
||||
<small>(greater than)</small>
|
||||
is replaced by &gt;
|
||||
"
|
||||
<small>(double quote)</small>
|
||||
is replaced by &quot;
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<td class="colFirst"><code>static void</code></td>
|
||||
<td class="colLast"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/XML.html#noSpace(java.lang.String)">noSpace</a></strong>(java.lang.String string)</code>
|
||||
|
||||
<div class="block">Throw an exception if the string contains whitespace.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><code>static java.lang.Object</code></td>
|
||||
<td class="colLast"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/XML.html#stringToValue(java.lang.String)">stringToValue</a></strong>(java.lang.String string)</code>
|
||||
|
||||
<div class="block">Try to convert a string into a number, boolean, or null.</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/XML.html#toJSONObject(java.lang.String)">toJSONObject</a></strong>(java.lang.String string)</code>
|
||||
|
||||
<div class="block">Convert a well-formed (but not necessarily valid) XML string into a
|
||||
JSONObject.
|
||||
</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/XML.html#toString(java.lang.Object)">toString</a></strong>(java.lang.Object object)</code>
|
||||
|
||||
<div class="block">Convert a JSONObject into a well-formed, element-normal XML string.
|
||||
</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/XML.html#toString(java.lang.Object,%20java.lang.String)">toString</a></strong>(java.lang.Object object,
|
||||
java.lang.String tagName)</code>
|
||||
|
||||
<div class="block">Convert a JSONObject into a well-formed, element-normal XML string.
|
||||
</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">
|
||||
<!-- ============ FIELD DETAIL =========== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="field_detail">
|
||||
<!-- -->
|
||||
</a>
|
||||
|
||||
<h3>Field Detail</h3>
|
||||
<a name="AMP">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>AMP</h4>
|
||||
<pre>public static final java.lang.Character AMP</pre>
|
||||
<div class="block">The Character '&'.</div>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="APOS">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>APOS</h4>
|
||||
<pre>public static final java.lang.Character APOS</pre>
|
||||
<div class="block">The Character '''.</div>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="BANG">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>BANG</h4>
|
||||
<pre>public static final java.lang.Character BANG</pre>
|
||||
<div class="block">The Character '!'.</div>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="EQ">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>EQ</h4>
|
||||
<pre>public static final java.lang.Character EQ</pre>
|
||||
<div class="block">The Character '='.</div>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="GT">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>GT</h4>
|
||||
<pre>public static final java.lang.Character GT</pre>
|
||||
<div class="block">The Character '>'.</div>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="LT">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>LT</h4>
|
||||
<pre>public static final java.lang.Character LT</pre>
|
||||
<div class="block">The Character '<'.</div>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="QUEST">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>QUEST</h4>
|
||||
<pre>public static final java.lang.Character QUEST</pre>
|
||||
<div class="block">The Character '?'.</div>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="QUOT">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>QUOT</h4>
|
||||
<pre>public static final java.lang.Character QUOT</pre>
|
||||
<div class="block">The Character '"'.</div>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="SLASH">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockListLast">
|
||||
<li class="blockList">
|
||||
<h4>SLASH</h4>
|
||||
<pre>public static final java.lang.Character SLASH</pre>
|
||||
<div class="block">The Character '/'.</div>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="constructor_detail">
|
||||
<!-- -->
|
||||
</a>
|
||||
|
||||
<h3>Constructor Detail</h3>
|
||||
<a name="XML()">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockListLast">
|
||||
<li class="blockList">
|
||||
<h4>XML</h4>
|
||||
<pre>public XML()</pre>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- ============ METHOD DETAIL ========== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="method_detail">
|
||||
<!-- -->
|
||||
</a>
|
||||
|
||||
<h3>Method Detail</h3>
|
||||
<a name="escape(java.lang.String)">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>escape</h4>
|
||||
<pre>public static java.lang.String escape(java.lang.String string)</pre>
|
||||
<div class="block">Replace special characters with XML escapes:
|
||||
<p/>
|
||||
<pre>
|
||||
& <small>(ampersand)</small> is replaced by &amp;
|
||||
< <small>(less than)</small> is replaced by &lt;
|
||||
> <small>(greater than)</small> is replaced by &gt;
|
||||
" <small>(double quote)</small> is replaced by &quot;
|
||||
</pre>
|
||||
</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Parameters:</span></dt>
|
||||
<dd><code>string</code> - The string to be escaped.</dd>
|
||||
<dt><span class="strong">Returns:</span></dt>
|
||||
<dd>The escaped string.</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="noSpace(java.lang.String)">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>noSpace</h4>
|
||||
<pre>public static void noSpace(java.lang.String string)
|
||||
throws <a href="../../../com/intellectualcrafters/json/JSONException.html"
|
||||
title="class in com.intellectualcrafters.json">JSONException</a></pre>
|
||||
<div class="block">Throw an exception if the string contains whitespace.
|
||||
Whitespace is not allowed in tagNames and attributes.
|
||||
</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Parameters:</span></dt>
|
||||
<dd><code>string</code> - A string.</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="stringToValue(java.lang.String)">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>stringToValue</h4>
|
||||
<pre>public static java.lang.Object stringToValue(java.lang.String string)</pre>
|
||||
<div class="block">Try to convert a string into a number, boolean, or null. If the string
|
||||
can't be converted, return the string. This is much less ambitious than
|
||||
JSONObject.stringToValue, especially because it does not attempt to
|
||||
convert plus forms, octal forms, hex forms, or E forms lacking decimal
|
||||
points.
|
||||
</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Parameters:</span></dt>
|
||||
<dd><code>string</code> - A String.</dd>
|
||||
<dt><span class="strong">Returns:</span></dt>
|
||||
<dd>A simple JSON value.</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="toJSONObject(java.lang.String)">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>toJSONObject</h4>
|
||||
<pre>public static <a href="../../../com/intellectualcrafters/json/JSONObject.html"
|
||||
title="class in com.intellectualcrafters.json">JSONObject</a> toJSONObject(java.lang.String string)
|
||||
throws <a href="../../../com/intellectualcrafters/json/JSONException.html"
|
||||
title="class in com.intellectualcrafters.json">JSONException</a></pre>
|
||||
<div class="block">Convert a well-formed (but not necessarily valid) XML string into a
|
||||
JSONObject. Some information may be lost in this transformation
|
||||
because JSON is a data format and XML is a document format. XML uses
|
||||
elements, attributes, and content text, while JSON uses unordered
|
||||
collections of name/value pairs and arrays of values. JSON does not
|
||||
does not like to distinguish between elements and attributes.
|
||||
Sequences of similar elements are represented as JSONArrays. Content
|
||||
text may be placed in a "content" member. Comments, prologs, DTDs, and
|
||||
<code><[ [ ]]></code> are ignored.
|
||||
</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Parameters:</span></dt>
|
||||
<dd><code>string</code> - The source string.</dd>
|
||||
<dt><span class="strong">Returns:</span></dt>
|
||||
<dd>A JSONObject containing the structured data from the XML string.</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(java.lang.Object)">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>toString</h4>
|
||||
<pre>public static java.lang.String toString(java.lang.Object object)
|
||||
throws <a href="../../../com/intellectualcrafters/json/JSONException.html"
|
||||
title="class in com.intellectualcrafters.json">JSONException</a></pre>
|
||||
<div class="block">Convert a JSONObject into a well-formed, element-normal XML string.</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Parameters:</span></dt>
|
||||
<dd><code>object</code> - A JSONObject.</dd>
|
||||
<dt><span class="strong">Returns:</span></dt>
|
||||
<dd>A string.</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(java.lang.Object, java.lang.String)">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockListLast">
|
||||
<li class="blockList">
|
||||
<h4>toString</h4>
|
||||
<pre>public static java.lang.String toString(java.lang.Object object,
|
||||
java.lang.String tagName)
|
||||
throws <a href="../../../com/intellectualcrafters/json/JSONException.html"
|
||||
title="class in com.intellectualcrafters.json">JSONException</a></pre>
|
||||
<div class="block">Convert a JSONObject into a well-formed, element-normal XML string.</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Parameters:</span></dt>
|
||||
<dd><code>object</code> - A JSONObject.</dd>
|
||||
<dd><code>tagName</code> - The optional name of the enclosing tag.</dd>
|
||||
<dt><span class="strong">Returns:</span></dt>
|
||||
<dd>A string.</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><a href="../../../com/intellectualcrafters/json/Property.html"
|
||||
title="class in com.intellectualcrafters.json"><span class="strong">Prev Class</span></a></li>
|
||||
<li><a href="../../../com/intellectualcrafters/json/XMLTokener.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/XML.html" target="_top">Frames</a></li>
|
||||
<li><a href="XML.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><a href="#field_summary">Field</a> | </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><a href="#field_detail">Field</a> | </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>
|
538
doc/com/intellectualcrafters/json/XMLTokener.html
Normal file
538
doc/com/intellectualcrafters/json/XMLTokener.html
Normal file
@ -0,0 +1,538 @@
|
||||
<!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:55 CET 2014 -->
|
||||
<title>XMLTokener</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 = "XMLTokener";
|
||||
}
|
||||
//-->
|
||||
</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><a href="../../../com/intellectualcrafters/json/XML.html"
|
||||
title="class in com.intellectualcrafters.json"><span class="strong">Prev Class</span></a></li>
|
||||
<li>Next Class</li>
|
||||
</ul>
|
||||
<ul class="navList">
|
||||
<li><a href="../../../index.html?com/intellectualcrafters/json/XMLTokener.html" target="_top">Frames</a></li>
|
||||
<li><a href="XMLTokener.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><a href="#field_summary">Field</a> | </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><a href="#field_detail">Field</a> | </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 XMLTokener" class="title">Class XMLTokener</h2>
|
||||
</div>
|
||||
<div class="contentContainer">
|
||||
<ul class="inheritance">
|
||||
<li>java.lang.Object</li>
|
||||
<li>
|
||||
<ul class="inheritance">
|
||||
<li><a href="../../../com/intellectualcrafters/json/JSONTokener.html"
|
||||
title="class in com.intellectualcrafters.json">com.intellectualcrafters.json.JSONTokener</a></li>
|
||||
<li>
|
||||
<ul class="inheritance">
|
||||
<li>com.intellectualcrafters.json.XMLTokener</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="description">
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<hr>
|
||||
<br>
|
||||
<pre>public class <span class="strong">XMLTokener</span>
|
||||
extends <a href="../../../com/intellectualcrafters/json/JSONTokener.html"
|
||||
title="class in com.intellectualcrafters.json">JSONTokener</a></pre>
|
||||
<div class="block">The XMLTokener extends the JSONTokener to provide additional methods
|
||||
for the parsing of XML texts.
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="summary">
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<!-- =========== FIELD SUMMARY =========== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="field_summary">
|
||||
<!-- -->
|
||||
</a>
|
||||
|
||||
<h3>Field Summary</h3>
|
||||
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0"
|
||||
summary="Field Summary table, listing fields, and an explanation">
|
||||
<caption><span>Fields</span><span class="tabEnd"> </span></caption>
|
||||
<tr>
|
||||
<th class="colFirst" scope="col">Modifier and Type</th>
|
||||
<th class="colLast" scope="col">Field and Description</th>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><code>static java.util.HashMap<java.lang.String,java.lang.Character></code>
|
||||
</td>
|
||||
<td class="colLast"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/XMLTokener.html#entity">entity</a></strong></code>
|
||||
|
||||
<div class="block">The table of entity values.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- ======== 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/XMLTokener.html#XMLTokener(java.lang.String)">XMLTokener</a></strong>(java.lang.String s)</code>
|
||||
|
||||
<div class="block">Construct an XMLTokener from a string.</div>
|
||||
</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>java.lang.String</code></td>
|
||||
<td class="colLast"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/XMLTokener.html#nextCDATA()">nextCDATA</a></strong>()</code>
|
||||
|
||||
<div class="block">Get the text in the CDATA block.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<td class="colFirst"><code>java.lang.Object</code></td>
|
||||
<td class="colLast"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/XMLTokener.html#nextContent()">nextContent</a></strong>()</code>
|
||||
|
||||
<div class="block">Get the next XML outer token, trimming whitespace.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><code>java.lang.Object</code></td>
|
||||
<td class="colLast"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/XMLTokener.html#nextEntity(char)">nextEntity</a></strong>(char ampersand)</code>
|
||||
|
||||
<div class="block">Return the next entity.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<td class="colFirst"><code>java.lang.Object</code></td>
|
||||
<td class="colLast"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/XMLTokener.html#nextMeta()">nextMeta</a></strong>()</code>
|
||||
|
||||
<div class="block">Returns the next XML meta token.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><code>java.lang.Object</code></td>
|
||||
<td class="colLast"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/XMLTokener.html#nextToken()">nextToken</a></strong>()</code>
|
||||
|
||||
<div class="block">Get the next XML Token.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<td class="colFirst"><code>boolean</code></td>
|
||||
<td class="colLast"><code><strong><a
|
||||
href="../../../com/intellectualcrafters/json/XMLTokener.html#skipPast(java.lang.String)">skipPast</a></strong>(java.lang.String to)</code>
|
||||
|
||||
<div class="block">Skip characters until past the requested string.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a
|
||||
name="methods_inherited_from_class_com.intellectualcrafters.json.JSONTokener">
|
||||
<!-- -->
|
||||
</a>
|
||||
|
||||
<h3>Methods inherited from class com.intellectualcrafters.json.<a
|
||||
href="../../../com/intellectualcrafters/json/JSONTokener.html"
|
||||
title="class in com.intellectualcrafters.json">JSONTokener</a></h3>
|
||||
<code><a href="../../../com/intellectualcrafters/json/JSONTokener.html#back()">back</a>, <a
|
||||
href="../../../com/intellectualcrafters/json/JSONTokener.html#dehexchar(char)">dehexchar</a>,
|
||||
<a href="../../../com/intellectualcrafters/json/JSONTokener.html#end()">end</a>, <a
|
||||
href="../../../com/intellectualcrafters/json/JSONTokener.html#more()">more</a>,
|
||||
<a href="../../../com/intellectualcrafters/json/JSONTokener.html#next()">next</a>, <a
|
||||
href="../../../com/intellectualcrafters/json/JSONTokener.html#next(char)">next</a>,
|
||||
<a href="../../../com/intellectualcrafters/json/JSONTokener.html#next(int)">next</a>, <a
|
||||
href="../../../com/intellectualcrafters/json/JSONTokener.html#nextClean()">nextClean</a>,
|
||||
<a href="../../../com/intellectualcrafters/json/JSONTokener.html#nextString(char)">nextString</a>,
|
||||
<a href="../../../com/intellectualcrafters/json/JSONTokener.html#nextTo(char)">nextTo</a>,
|
||||
<a href="../../../com/intellectualcrafters/json/JSONTokener.html#nextTo(java.lang.String)">nextTo</a>,
|
||||
<a href="../../../com/intellectualcrafters/json/JSONTokener.html#nextValue()">nextValue</a>,
|
||||
<a href="../../../com/intellectualcrafters/json/JSONTokener.html#skipTo(char)">skipTo</a>,
|
||||
<a href="../../../com/intellectualcrafters/json/JSONTokener.html#syntaxError(java.lang.String)">syntaxError</a>,
|
||||
<a href="../../../com/intellectualcrafters/json/JSONTokener.html#toString()">toString</a></code>
|
||||
</li>
|
||||
</ul>
|
||||
<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, wait, wait,
|
||||
wait</code></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="details">
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<!-- ============ FIELD DETAIL =========== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="field_detail">
|
||||
<!-- -->
|
||||
</a>
|
||||
|
||||
<h3>Field Detail</h3>
|
||||
<a name="entity">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockListLast">
|
||||
<li class="blockList">
|
||||
<h4>entity</h4>
|
||||
<pre>public static final java.util.HashMap<java.lang.String,java.lang.Character> entity</pre>
|
||||
<div class="block">The table of entity values. It initially contains Character values for
|
||||
amp, apos, gt, lt, quot.
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="constructor_detail">
|
||||
<!-- -->
|
||||
</a>
|
||||
|
||||
<h3>Constructor Detail</h3>
|
||||
<a name="XMLTokener(java.lang.String)">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockListLast">
|
||||
<li class="blockList">
|
||||
<h4>XMLTokener</h4>
|
||||
<pre>public XMLTokener(java.lang.String s)</pre>
|
||||
<div class="block">Construct an XMLTokener from a string.</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Parameters:</span></dt>
|
||||
<dd><code>s</code> - A source string.</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- ============ METHOD DETAIL ========== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="method_detail">
|
||||
<!-- -->
|
||||
</a>
|
||||
|
||||
<h3>Method Detail</h3>
|
||||
<a name="nextCDATA()">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>nextCDATA</h4>
|
||||
<pre>public java.lang.String nextCDATA()
|
||||
throws <a href="../../../com/intellectualcrafters/json/JSONException.html"
|
||||
title="class in com.intellectualcrafters.json">JSONException</a></pre>
|
||||
<div class="block">Get the text in the CDATA block.</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Returns:</span></dt>
|
||||
<dd>The string up to the <code>]]></code>.</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> -
|
||||
If the <code>]]></code> is not found.
|
||||
</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="nextContent()">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>nextContent</h4>
|
||||
<pre>public java.lang.Object nextContent()
|
||||
throws <a href="../../../com/intellectualcrafters/json/JSONException.html"
|
||||
title="class in com.intellectualcrafters.json">JSONException</a></pre>
|
||||
<div class="block">Get the next XML outer token, trimming whitespace. There are two kinds
|
||||
of tokens: the '<' character which begins a markup tag, and the content
|
||||
text between markup tags.
|
||||
</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Returns:</span></dt>
|
||||
<dd>A string, or a '<' Character, or null if there is no more
|
||||
source 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="nextEntity(char)">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>nextEntity</h4>
|
||||
<pre>public java.lang.Object nextEntity(char ampersand)
|
||||
throws <a href="../../../com/intellectualcrafters/json/JSONException.html"
|
||||
title="class in com.intellectualcrafters.json">JSONException</a></pre>
|
||||
<div class="block">Return the next entity. These entities are translated to Characters:
|
||||
<code>& ' > < "</code>.
|
||||
</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Parameters:</span></dt>
|
||||
<dd><code>ampersand</code> - An ampersand character.</dd>
|
||||
<dt><span class="strong">Returns:</span></dt>
|
||||
<dd>A Character or an entity String if the entity is not recognized.</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> -
|
||||
If missing ';' in XML entity.
|
||||
</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="nextMeta()">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>nextMeta</h4>
|
||||
<pre>public java.lang.Object nextMeta()
|
||||
throws <a href="../../../com/intellectualcrafters/json/JSONException.html"
|
||||
title="class in com.intellectualcrafters.json">JSONException</a></pre>
|
||||
<div class="block">Returns the next XML meta token. This is used for skipping over <!...>
|
||||
and <?...?> structures.
|
||||
</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Returns:</span></dt>
|
||||
<dd>Syntax characters (<code>< > / = ! ?</code>) are returned as
|
||||
Character, and strings and names are returned as Boolean. We
|
||||
don't care
|
||||
what the values actually are.
|
||||
</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> -
|
||||
If a string is not properly closed or if the XML
|
||||
is badly structured.
|
||||
</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="nextToken()">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>nextToken</h4>
|
||||
<pre>public java.lang.Object nextToken()
|
||||
throws <a href="../../../com/intellectualcrafters/json/JSONException.html"
|
||||
title="class in com.intellectualcrafters.json">JSONException</a></pre>
|
||||
<div class="block">Get the next XML Token. These tokens are found inside of angle
|
||||
brackets. It may be one of these characters: <code>/ > = ! ?</code> or it
|
||||
may be a string wrapped in single quotes or double quotes, or it may be a
|
||||
name.
|
||||
</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Returns:</span></dt>
|
||||
<dd>a String or a Character.</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> -
|
||||
If the XML is not well formed.
|
||||
</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="skipPast(java.lang.String)">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockListLast">
|
||||
<li class="blockList">
|
||||
<h4>skipPast</h4>
|
||||
<pre>public boolean skipPast(java.lang.String to)
|
||||
throws <a href="../../../com/intellectualcrafters/json/JSONException.html"
|
||||
title="class in com.intellectualcrafters.json">JSONException</a></pre>
|
||||
<div class="block">Skip characters until past the requested string.
|
||||
If it is not found, we are left at the end of the source with a result of
|
||||
false.
|
||||
</div>
|
||||
<dl>
|
||||
<dt><span class="strong">Parameters:</span></dt>
|
||||
<dd><code>to</code> - A string to skip past.</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><a href="../../../com/intellectualcrafters/json/XML.html"
|
||||
title="class in com.intellectualcrafters.json"><span class="strong">Prev Class</span></a></li>
|
||||
<li>Next Class</li>
|
||||
</ul>
|
||||
<ul class="navList">
|
||||
<li><a href="../../../index.html?com/intellectualcrafters/json/XMLTokener.html" target="_top">Frames</a></li>
|
||||
<li><a href="XMLTokener.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><a href="#field_summary">Field</a> | </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><a href="#field_detail">Field</a> | </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>
|
53
doc/com/intellectualcrafters/json/package-frame.html
Normal file
53
doc/com/intellectualcrafters/json/package-frame.html
Normal file
@ -0,0 +1,53 @@
|
||||
<!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:55 CET 2014 -->
|
||||
<title>com.intellectualcrafters.json</title>
|
||||
<meta name="date" content="2014-11-16">
|
||||
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
|
||||
</head>
|
||||
<body>
|
||||
<h1 class="bar"><a href="../../../com/intellectualcrafters/json/package-summary.html" target="classFrame">com.intellectualcrafters.json</a>
|
||||
</h1>
|
||||
|
||||
<div class="indexContainer">
|
||||
<h2 title="Interfaces">Interfaces</h2>
|
||||
<ul title="Interfaces">
|
||||
<li><a href="JSONString.html" title="interface in com.intellectualcrafters.json" target="classFrame"><i>JSONString</i></a>
|
||||
</li>
|
||||
</ul>
|
||||
<h2 title="Classes">Classes</h2>
|
||||
<ul title="Classes">
|
||||
<li><a href="CDL.html" title="class in com.intellectualcrafters.json" target="classFrame">CDL</a></li>
|
||||
<li><a href="Cookie.html" title="class in com.intellectualcrafters.json" target="classFrame">Cookie</a></li>
|
||||
<li><a href="CookieList.html" title="class in com.intellectualcrafters.json" target="classFrame">CookieList</a>
|
||||
</li>
|
||||
<li><a href="HTTP.html" title="class in com.intellectualcrafters.json" target="classFrame">HTTP</a></li>
|
||||
<li><a href="HTTPTokener.html" title="class in com.intellectualcrafters.json"
|
||||
target="classFrame">HTTPTokener</a></li>
|
||||
<li><a href="JSONArray.html" title="class in com.intellectualcrafters.json" target="classFrame">JSONArray</a>
|
||||
</li>
|
||||
<li><a href="JSONML.html" title="class in com.intellectualcrafters.json" target="classFrame">JSONML</a></li>
|
||||
<li><a href="JSONObject.html" title="class in com.intellectualcrafters.json" target="classFrame">JSONObject</a>
|
||||
</li>
|
||||
<li><a href="JSONStringer.html" title="class in com.intellectualcrafters.json"
|
||||
target="classFrame">JSONStringer</a></li>
|
||||
<li><a href="JSONTokener.html" title="class in com.intellectualcrafters.json"
|
||||
target="classFrame">JSONTokener</a></li>
|
||||
<li><a href="JSONWriter.html" title="class in com.intellectualcrafters.json" target="classFrame">JSONWriter</a>
|
||||
</li>
|
||||
<li><a href="Kim.html" title="class in com.intellectualcrafters.json" target="classFrame">Kim</a></li>
|
||||
<li><a href="Property.html" title="class in com.intellectualcrafters.json" target="classFrame">Property</a></li>
|
||||
<li><a href="XML.html" title="class in com.intellectualcrafters.json" target="classFrame">XML</a></li>
|
||||
<li><a href="XMLTokener.html" title="class in com.intellectualcrafters.json" target="classFrame">XMLTokener</a>
|
||||
</li>
|
||||
</ul>
|
||||
<h2 title="Exceptions">Exceptions</h2>
|
||||
<ul title="Exceptions">
|
||||
<li><a href="JSONException.html" title="class in com.intellectualcrafters.json" target="classFrame">JSONException</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
292
doc/com/intellectualcrafters/json/package-summary.html
Normal file
292
doc/com/intellectualcrafters/json/package-summary.html
Normal file
@ -0,0 +1,292 @@
|
||||
<!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:55 CET 2014 -->
|
||||
<title>com.intellectualcrafters.json</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 = "com.intellectualcrafters.json";
|
||||
}
|
||||
//-->
|
||||
</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 class="navBarCell1Rev">Package</li>
|
||||
<li>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><a href="../../../com/intellectualcrafters/jnbt/package-summary.html">Prev Package</a></li>
|
||||
<li><a href="../../../com/intellectualcrafters/plot/package-summary.html">Next Package</a></li>
|
||||
</ul>
|
||||
<ul class="navList">
|
||||
<li><a href="../../../index.html?com/intellectualcrafters/json/package-summary.html" target="_top">Frames</a>
|
||||
</li>
|
||||
<li><a href="package-summary.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>
|
||||
<a name="skip-navbar_top">
|
||||
<!-- -->
|
||||
</a></div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<div class="header">
|
||||
<h1 title="Package" class="title">Package com.intellectualcrafters.json</h1>
|
||||
</div>
|
||||
<div class="contentContainer">
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<table class="packageSummary" border="0" cellpadding="3" cellspacing="0"
|
||||
summary="Interface Summary table, listing interfaces, and an explanation">
|
||||
<caption><span>Interface Summary</span><span class="tabEnd"> </span></caption>
|
||||
<tr>
|
||||
<th class="colFirst" scope="col">Interface</th>
|
||||
<th class="colLast" scope="col">Description</th>
|
||||
</tr>
|
||||
<tbody>
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><a href="../../../com/intellectualcrafters/json/JSONString.html"
|
||||
title="interface in com.intellectualcrafters.json">JSONString</a></td>
|
||||
<td class="colLast">
|
||||
<div class="block">The <code>JSONString</code> interface allows a <code>toJSONString()</code>
|
||||
method so that a class can change the behavior of
|
||||
<code>JSONObject.toString()</code>, <code>JSONArray.toString()</code>,
|
||||
and <code>JSONWriter.value(</code>Object<code>)</code>.
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</li>
|
||||
<li class="blockList">
|
||||
<table class="packageSummary" border="0" cellpadding="3" cellspacing="0"
|
||||
summary="Class Summary table, listing classes, and an explanation">
|
||||
<caption><span>Class Summary</span><span class="tabEnd"> </span></caption>
|
||||
<tr>
|
||||
<th class="colFirst" scope="col">Class</th>
|
||||
<th class="colLast" scope="col">Description</th>
|
||||
</tr>
|
||||
<tbody>
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><a href="../../../com/intellectualcrafters/json/CDL.html"
|
||||
title="class in com.intellectualcrafters.json">CDL</a></td>
|
||||
<td class="colLast">
|
||||
<div class="block">This provides static methods to convert comma delimited text into a
|
||||
JSONArray, and to covert a JSONArray into comma delimited text.
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<td class="colFirst"><a href="../../../com/intellectualcrafters/json/Cookie.html"
|
||||
title="class in com.intellectualcrafters.json">Cookie</a></td>
|
||||
<td class="colLast">
|
||||
<div class="block">Convert a web browser cookie specification to a JSONObject and back.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><a href="../../../com/intellectualcrafters/json/CookieList.html"
|
||||
title="class in com.intellectualcrafters.json">CookieList</a></td>
|
||||
<td class="colLast">
|
||||
<div class="block">Convert a web browser cookie list string to a JSONObject and back.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<td class="colFirst"><a href="../../../com/intellectualcrafters/json/HTTP.html"
|
||||
title="class in com.intellectualcrafters.json">HTTP</a></td>
|
||||
<td class="colLast">
|
||||
<div class="block">Convert an HTTP header to a JSONObject and back.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><a href="../../../com/intellectualcrafters/json/HTTPTokener.html"
|
||||
title="class in com.intellectualcrafters.json">HTTPTokener</a></td>
|
||||
<td class="colLast">
|
||||
<div class="block">The HTTPTokener extends the JSONTokener to provide additional methods
|
||||
for the parsing of HTTP headers.
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<td class="colFirst"><a href="../../../com/intellectualcrafters/json/JSONArray.html"
|
||||
title="class in com.intellectualcrafters.json">JSONArray</a></td>
|
||||
<td class="colLast">
|
||||
<div class="block">A JSONArray is an ordered sequence of values.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><a href="../../../com/intellectualcrafters/json/JSONML.html"
|
||||
title="class in com.intellectualcrafters.json">JSONML</a></td>
|
||||
<td class="colLast">
|
||||
<div class="block">This provides static methods to convert an XML text into a JSONArray or
|
||||
JSONObject, and to covert a JSONArray or JSONObject into an XML text using
|
||||
the JsonML transform.
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<td class="colFirst"><a href="../../../com/intellectualcrafters/json/JSONObject.html"
|
||||
title="class in com.intellectualcrafters.json">JSONObject</a></td>
|
||||
<td class="colLast">
|
||||
<div class="block">A JSONObject is an unordered collection of name/value pairs.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><a href="../../../com/intellectualcrafters/json/JSONStringer.html"
|
||||
title="class in com.intellectualcrafters.json">JSONStringer</a></td>
|
||||
<td class="colLast">
|
||||
<div class="block">JSONStringer provides a quick and convenient way of producing JSON text.
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<td class="colFirst"><a href="../../../com/intellectualcrafters/json/JSONTokener.html"
|
||||
title="class in com.intellectualcrafters.json">JSONTokener</a></td>
|
||||
<td class="colLast">
|
||||
<div class="block">A JSONTokener takes a source string and extracts characters and tokens from
|
||||
it.
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><a href="../../../com/intellectualcrafters/json/JSONWriter.html"
|
||||
title="class in com.intellectualcrafters.json">JSONWriter</a></td>
|
||||
<td class="colLast">
|
||||
<div class="block">JSONWriter provides a quick and convenient way of producing JSON text.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<td class="colFirst"><a href="../../../com/intellectualcrafters/json/Kim.html"
|
||||
title="class in com.intellectualcrafters.json">Kim</a></td>
|
||||
<td class="colLast">
|
||||
<div class="block">Kim makes immutable eight bit Unicode strings.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><a href="../../../com/intellectualcrafters/json/Property.html"
|
||||
title="class in com.intellectualcrafters.json">Property</a></td>
|
||||
<td class="colLast">
|
||||
<div class="block">Converts a Property file data into JSONObject and back.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
<td class="colFirst"><a href="../../../com/intellectualcrafters/json/XML.html"
|
||||
title="class in com.intellectualcrafters.json">XML</a></td>
|
||||
<td class="colLast">
|
||||
<div class="block">This provides static methods to convert an XML text into a JSONObject,
|
||||
and to covert a JSONObject into an XML text.
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><a href="../../../com/intellectualcrafters/json/XMLTokener.html"
|
||||
title="class in com.intellectualcrafters.json">XMLTokener</a></td>
|
||||
<td class="colLast">
|
||||
<div class="block">The XMLTokener extends the JSONTokener to provide additional methods
|
||||
for the parsing of XML texts.
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</li>
|
||||
<li class="blockList">
|
||||
<table class="packageSummary" border="0" cellpadding="3" cellspacing="0"
|
||||
summary="Exception Summary table, listing exceptions, and an explanation">
|
||||
<caption><span>Exception Summary</span><span class="tabEnd"> </span></caption>
|
||||
<tr>
|
||||
<th class="colFirst" scope="col">Exception</th>
|
||||
<th class="colLast" scope="col">Description</th>
|
||||
</tr>
|
||||
<tbody>
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><a href="../../../com/intellectualcrafters/json/JSONException.html"
|
||||
title="class in com.intellectualcrafters.json">JSONException</a></td>
|
||||
<td class="colLast">
|
||||
<div class="block">The JSONException is thrown by the JSON.org classes when things are amiss.
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- ======= 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 class="navBarCell1Rev">Package</li>
|
||||
<li>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><a href="../../../com/intellectualcrafters/jnbt/package-summary.html">Prev Package</a></li>
|
||||
<li><a href="../../../com/intellectualcrafters/plot/package-summary.html">Next Package</a></li>
|
||||
</ul>
|
||||
<ul class="navList">
|
||||
<li><a href="../../../index.html?com/intellectualcrafters/json/package-summary.html" target="_top">Frames</a>
|
||||
</li>
|
||||
<li><a href="package-summary.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>
|
||||
<a name="skip-navbar_bottom">
|
||||
<!-- -->
|
||||
</a></div>
|
||||
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
||||
</body>
|
||||
</html>
|
201
doc/com/intellectualcrafters/json/package-tree.html
Normal file
201
doc/com/intellectualcrafters/json/package-tree.html
Normal file
@ -0,0 +1,201 @@
|
||||
<!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:55 CET 2014 -->
|
||||
<title>com.intellectualcrafters.json Class Hierarchy</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 = "com.intellectualcrafters.json Class Hierarchy";
|
||||
}
|
||||
//-->
|
||||
</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</li>
|
||||
<li class="navBarCell1Rev">Tree</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><a href="../../../com/intellectualcrafters/jnbt/package-tree.html">Prev</a></li>
|
||||
<li><a href="../../../com/intellectualcrafters/plot/package-tree.html">Next</a></li>
|
||||
</ul>
|
||||
<ul class="navList">
|
||||
<li><a href="../../../index.html?com/intellectualcrafters/json/package-tree.html" target="_top">Frames</a></li>
|
||||
<li><a href="package-tree.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>
|
||||
<a name="skip-navbar_top">
|
||||
<!-- -->
|
||||
</a></div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<div class="header">
|
||||
<h1 class="title">Hierarchy For Package com.intellectualcrafters.json</h1>
|
||||
<span class="strong">Package Hierarchies:</span>
|
||||
<ul class="horizontal">
|
||||
<li><a href="../../../overview-tree.html">All Packages</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="contentContainer">
|
||||
<h2 title="Class Hierarchy">Class Hierarchy</h2>
|
||||
<ul>
|
||||
<li type="circle">java.lang.Object
|
||||
<ul>
|
||||
<li type="circle">com.intellectualcrafters.json.<a
|
||||
href="../../../com/intellectualcrafters/json/CDL.html"
|
||||
title="class in com.intellectualcrafters.json"><span class="strong">CDL</span></a></li>
|
||||
<li type="circle">com.intellectualcrafters.json.<a
|
||||
href="../../../com/intellectualcrafters/json/Cookie.html"
|
||||
title="class in com.intellectualcrafters.json"><span class="strong">Cookie</span></a></li>
|
||||
<li type="circle">com.intellectualcrafters.json.<a
|
||||
href="../../../com/intellectualcrafters/json/CookieList.html"
|
||||
title="class in com.intellectualcrafters.json"><span class="strong">CookieList</span></a></li>
|
||||
<li type="circle">com.intellectualcrafters.json.<a
|
||||
href="../../../com/intellectualcrafters/json/HTTP.html"
|
||||
title="class in com.intellectualcrafters.json"><span class="strong">HTTP</span></a></li>
|
||||
<li type="circle">com.intellectualcrafters.json.<a
|
||||
href="../../../com/intellectualcrafters/json/JSONArray.html"
|
||||
title="class in com.intellectualcrafters.json"><span class="strong">JSONArray</span></a></li>
|
||||
<li type="circle">com.intellectualcrafters.json.<a
|
||||
href="../../../com/intellectualcrafters/json/JSONML.html"
|
||||
title="class in com.intellectualcrafters.json"><span class="strong">JSONML</span></a></li>
|
||||
<li type="circle">com.intellectualcrafters.json.<a
|
||||
href="../../../com/intellectualcrafters/json/JSONObject.html"
|
||||
title="class in com.intellectualcrafters.json"><span class="strong">JSONObject</span></a></li>
|
||||
<li type="circle">com.intellectualcrafters.json.<a
|
||||
href="../../../com/intellectualcrafters/json/JSONTokener.html"
|
||||
title="class in com.intellectualcrafters.json"><span class="strong">JSONTokener</span></a>
|
||||
<ul>
|
||||
<li type="circle">com.intellectualcrafters.json.<a
|
||||
href="../../../com/intellectualcrafters/json/HTTPTokener.html"
|
||||
title="class in com.intellectualcrafters.json"><span
|
||||
class="strong">HTTPTokener</span></a></li>
|
||||
<li type="circle">com.intellectualcrafters.json.<a
|
||||
href="../../../com/intellectualcrafters/json/XMLTokener.html"
|
||||
title="class in com.intellectualcrafters.json"><span
|
||||
class="strong">XMLTokener</span></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li type="circle">com.intellectualcrafters.json.<a
|
||||
href="../../../com/intellectualcrafters/json/JSONWriter.html"
|
||||
title="class in com.intellectualcrafters.json"><span class="strong">JSONWriter</span></a>
|
||||
<ul>
|
||||
<li type="circle">com.intellectualcrafters.json.<a
|
||||
href="../../../com/intellectualcrafters/json/JSONStringer.html"
|
||||
title="class in com.intellectualcrafters.json"><span class="strong">JSONStringer</span></a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li type="circle">com.intellectualcrafters.json.<a
|
||||
href="../../../com/intellectualcrafters/json/Kim.html"
|
||||
title="class in com.intellectualcrafters.json"><span class="strong">Kim</span></a></li>
|
||||
<li type="circle">com.intellectualcrafters.json.<a
|
||||
href="../../../com/intellectualcrafters/json/Property.html"
|
||||
title="class in com.intellectualcrafters.json"><span class="strong">Property</span></a></li>
|
||||
<li type="circle">java.lang.Throwable (implements java.io.Serializable)
|
||||
<ul>
|
||||
<li type="circle">java.lang.Exception
|
||||
<ul>
|
||||
<li type="circle">java.lang.RuntimeException
|
||||
<ul>
|
||||
<li type="circle">com.intellectualcrafters.json.<a
|
||||
href="../../../com/intellectualcrafters/json/JSONException.html"
|
||||
title="class in com.intellectualcrafters.json"><span class="strong">JSONException</span></a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li type="circle">com.intellectualcrafters.json.<a
|
||||
href="../../../com/intellectualcrafters/json/XML.html"
|
||||
title="class in com.intellectualcrafters.json"><span class="strong">XML</span></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<h2 title="Interface Hierarchy">Interface Hierarchy</h2>
|
||||
<ul>
|
||||
<li type="circle">com.intellectualcrafters.json.<a href="../../../com/intellectualcrafters/json/JSONString.html"
|
||||
title="interface in com.intellectualcrafters.json"><span
|
||||
class="strong">JSONString</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- ======= 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</li>
|
||||
<li class="navBarCell1Rev">Tree</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><a href="../../../com/intellectualcrafters/jnbt/package-tree.html">Prev</a></li>
|
||||
<li><a href="../../../com/intellectualcrafters/plot/package-tree.html">Next</a></li>
|
||||
</ul>
|
||||
<ul class="navList">
|
||||
<li><a href="../../../index.html?com/intellectualcrafters/json/package-tree.html" target="_top">Frames</a></li>
|
||||
<li><a href="package-tree.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>
|
||||
<a name="skip-navbar_bottom">
|
||||
<!-- -->
|
||||
</a></div>
|
||||
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user