blob: dbaaa78efac4588063fee183534720a12796897b [file]
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- **************************************************************** -->
<!-- * PLEASE KEEP COMPLICATED EXPRESSIONS OUT OF THESE TEMPLATES, * -->
<!-- * i.e. only iterate & print data where possible. Thanks, Jez. * -->
<!-- **************************************************************** -->
<html>
<head>
<!-- Generated by groovydoc (4.0.30) -->
<title>DefaultJsonGenerator (Grails 7.0.9)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="../../../../groovy.ico" type="image/x-icon" rel="shortcut icon">
<link href="../../../../groovy.ico" type="image/x-icon" rel="icon">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<body class="center">
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="DefaultJsonGenerator (Grails 7.0.9)";
}
//-->
</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="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<div>
<ul class="navList">
<li><a href="../../../../index.html?grails/plugin/json/builder/DefaultJsonGenerator" target="_top">Frames</a></li>
<li><a href="DefaultJsonGenerator.html" target="_top">No Frames</a></li>
</ul>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested_summary">Nested</a></li>&nbsp;&nbsp;&nbsp;<li><a href="#field_summary">Field</a></li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<li><a href="#constructor_summary">Constructor</a></li>&nbsp;&nbsp;&nbsp;<li><a href="#method_summary">Method</a></li>&nbsp;&nbsp;&nbsp;
</ul>
<ul class="subNavList">
<li>&nbsp;|&nbsp;Detail:&nbsp;</li>
<li><a href="#field_detail">Field</a></li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<li><a href="#constructor_detail">Constructor</a></li>&nbsp;&nbsp;&nbsp;<li><a href="#method_detail">Method</a></li>&nbsp;&nbsp;&nbsp;
</ul>
</div>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">Package: <strong>grails.plugin.json.builder</strong></div>
<h2 title="[Java] Class DefaultJsonGenerator" class="title">[Java] Class DefaultJsonGenerator</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><ul class="inheritance"></ul></li><li>grails.plugin.json.builder.DefaultJsonGenerator
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces and Traits:</dt>
<dd><a href='../../../../grails/plugin/json/builder/JsonGenerator.html'>JsonGenerator</a></dd>
</dl>
<!-- todo: direct known subclasses -->
<hr>
<pre>public class DefaultJsonGenerator
extends java.lang.Object
implements <a href='../../../../grails/plugin/json/builder/JsonGenerator.html'>JsonGenerator</a></pre>
<p> Temporary fork of DefaultJsonGenerator until Groovy 2.5.0 is out.
<p>A JsonGenerator that can be configured with various JsonGenerator.Options.
If the default options are sufficient consider using the static <CODE>JsonOutput.toJson</CODE>
methods.
<DL><DT><B>See Also:</B></DT><DD>JsonGenerator.Options#build()</DD></DL><DL><DT><B>Since:</B></DT><DD>2.5</DD></DL></p>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== NESTED CLASS SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="nested_summary"><!-- --></a>
<h3>Nested Class Summary</h3>
<ul class="blockList">
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation">
<caption><span>Nested classes</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifiers</th>
<th class="colLast" scope="col">Name</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code><strong>protected&nbsp;static&nbsp;class</strong></code>&nbsp;</td>
<td class="colLast"><code><a href='../../../../grails/plugin/json/builder/DefaultJsonGenerator.ClosureConverter.html'>DefaultJsonGenerator.ClosureConverter</a></code></td>
<td class="colLast">A converter that handles converting a given type to a JSON value
using a closure.</td>
</tr>
</table>
</ul>
</li>
</ul>
<!-- =========== ENUM CONSTANT SUMMARY =========== -->
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_summary"><!-- --></a>
<h3>Field Summary</h3>
<ul class="blockList">
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Enum constants summary table">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifiers</th>
<th class="colLast" scope="col">Name</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code><strong>protected&nbsp;java.util.Set&lt;Converter&gt;</strong></code>&nbsp;</td>
<td class="colLast"><code><a href="#converters">converters</a></code></td>
<td class="colLast"></td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><strong>protected&nbsp;java.lang.String</strong></code>&nbsp;</td>
<td class="colLast"><code><a href="#dateFormat">dateFormat</a></code></td>
<td class="colLast"></td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><strong>protected&nbsp;java.util.Locale</strong></code>&nbsp;</td>
<td class="colLast"><code><a href="#dateLocale">dateLocale</a></code></td>
<td class="colLast"></td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><strong>protected&nbsp;boolean</strong></code>&nbsp;</td>
<td class="colLast"><code><a href="#disableUnicodeEscaping">disableUnicodeEscaping</a></code></td>
<td class="colLast"></td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><strong>protected&nbsp;boolean</strong></code>&nbsp;</td>
<td class="colLast"><code><a href="#excludeNulls">excludeNulls</a></code></td>
<td class="colLast"></td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><strong>protected&nbsp;java.util.Set&lt;java.lang.String&gt;</strong></code>&nbsp;</td>
<td class="colLast"><code><a href="#excludedFieldNames">excludedFieldNames</a></code></td>
<td class="colLast"></td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><strong>protected&nbsp;java.util.Set&lt;java.lang.Class&lt;?&gt;&gt;</strong></code>&nbsp;</td>
<td class="colLast"><code><a href="#excludedFieldTypes">excludedFieldTypes</a></code></td>
<td class="colLast"></td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><strong>protected&nbsp;java.util.TimeZone</strong></code>&nbsp;</td>
<td class="colLast"><code><a href="#timezone">timezone</a></code></td>
<td class="colLast"></td>
</tr>
</table>
</ul>
</li>
</ul>
<!-- =========== PROPERTY SUMMARY =========== -->
<!-- =========== ELEMENT SUMMARY =========== -->
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary"><!-- --></a>
<h3>Constructor Summary</h3>
<ul class="blockList">
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructors Summary table">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Constructor and description</th>
</tr>
<tr class="altColor">
<td class="colFirst">
<code>protected&nbsp;<strong><a href="#DefaultJsonGenerator(Options)">DefaultJsonGenerator</a></strong>(<a href='../../../../Options.html'>Options</a> options)</code><br></td>
</tr>
</table>
</ul>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary"><!-- --></a>
<h3>Methods Summary</h3>
<ul class="blockList">
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Methods Summary table">
<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Type Params</th>
<th class="colLast" scope="col">Return Type</th>
<th class="colLast" scope="col">Name and description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code></code></td>
<td class="colLast"><code>protected&nbsp;<a href='../../../../org/grails/web/converters/Converter.html'>Converter</a></code></td>
<td class="colLast"><code><strong><a href="#findConverter(Class)">findConverter</a></strong>(java.lang.Class&lt;?&gt; type)</code><br>Finds a converter that can handle the given type. </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code></code></td>
<td class="colLast"><code>protected&nbsp;java.util.Map&lt;?, ?&gt;</code></td>
<td class="colLast"><code><strong><a href="#getObjectProperties(java.lang.Object)">getObjectProperties</a></strong>(java.lang.Object object)</code><br></td>
</tr>
<tr class="altColor">
<td class="colFirst"><code></code></td>
<td class="colLast"><code>public&nbsp;boolean</code></td>
<td class="colLast"><code><strong><a href="#isExcludingFieldsNamed(java.lang.String)">isExcludingFieldsNamed</a></strong>(java.lang.String name)</code><br>{@inheritDoc}</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code></code></td>
<td class="colLast"><code>public&nbsp;boolean</code></td>
<td class="colLast"><code><strong><a href="#isExcludingValues(java.lang.Object)">isExcludingValues</a></strong>(java.lang.Object value)</code><br>{@inheritDoc}</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code></code></td>
<td class="colLast"><code>protected&nbsp;boolean</code></td>
<td class="colLast"><code><strong><a href="#shouldExcludeType(Class)">shouldExcludeType</a></strong>(java.lang.Class&lt;?&gt; type)</code><br>Indicates whether the given type should be excluded from the generated output.</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code></code></td>
<td class="colLast"><code>public&nbsp;java.lang.String</code></td>
<td class="colLast"><code><strong><a href="#toJson(java.lang.Object)">toJson</a></strong>(java.lang.Object object)</code><br>{@inheritDoc}</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code></code></td>
<td class="colLast"><code>protected&nbsp;void</code></td>
<td class="colLast"><code><strong><a href="#writeArray(Class, java.lang.Object, org.apache.groovy.json.internal.CharBuf)">writeArray</a></strong>(java.lang.Class&lt;?&gt; arrayClass, java.lang.Object array, <a href='../../../../org.apache.groovy.json.internal.CharBuf.html'>CharBuf</a> buffer)</code><br>Serializes array and writes it into specified buffer.</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code></code></td>
<td class="colLast"><code>protected&nbsp;void</code></td>
<td class="colLast"><code><strong><a href="#writeCharSequence(java.lang.CharSequence, org.apache.groovy.json.internal.CharBuf)">writeCharSequence</a></strong>(java.lang.CharSequence seq, <a href='../../../../org.apache.groovy.json.internal.CharBuf.html'>CharBuf</a> buffer)</code><br>Serializes any char sequence and writes it into specified buffer.</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code></code></td>
<td class="colLast"><code>protected&nbsp;void</code></td>
<td class="colLast"><code><strong><a href="#writeDate(java.util.Date, org.apache.groovy.json.internal.CharBuf)">writeDate</a></strong>(java.util.Date date, <a href='../../../../org.apache.groovy.json.internal.CharBuf.html'>CharBuf</a> buffer)</code><br>Serializes date and writes it into specified buffer.</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code></code></td>
<td class="colLast"><code>protected&nbsp;void</code></td>
<td class="colLast"><code><strong><a href="#writeIterator(Iterator, org.apache.groovy.json.internal.CharBuf)">writeIterator</a></strong>(java.util.Iterator&lt;?&gt; iterator, <a href='../../../../org.apache.groovy.json.internal.CharBuf.html'>CharBuf</a> buffer)</code><br>Serializes iterator and writes it into specified buffer.</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code></code></td>
<td class="colLast"><code>protected&nbsp;void</code></td>
<td class="colLast"><code><strong><a href="#writeMap(Map, org.apache.groovy.json.internal.CharBuf)">writeMap</a></strong>(java.util.Map&lt;?, ?&gt; map, <a href='../../../../org.apache.groovy.json.internal.CharBuf.html'>CharBuf</a> buffer)</code><br>Serializes map and writes it into specified buffer.</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code></code></td>
<td class="colLast"><code>protected&nbsp;void</code></td>
<td class="colLast"><code><strong><a href="#writeMapEntry(java.lang.String, java.lang.Object, org.apache.groovy.json.internal.CharBuf)">writeMapEntry</a></strong>(java.lang.String key, java.lang.Object value, <a href='../../../../org.apache.groovy.json.internal.CharBuf.html'>CharBuf</a> buffer)</code><br>Serializes a map entry and writes it into specified buffer.</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code></code></td>
<td class="colLast"><code>protected&nbsp;void</code></td>
<td class="colLast"><code><strong><a href="#writeNumber(Class, java.lang.Number, org.apache.groovy.json.internal.CharBuf)">writeNumber</a></strong>(java.lang.Class&lt;?&gt; numberClass, java.lang.Number value, <a href='../../../../org.apache.groovy.json.internal.CharBuf.html'>CharBuf</a> buffer)</code><br>Serializes Number value and writes it into specified buffer.</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code></code></td>
<td class="colLast"><code>protected&nbsp;void</code></td>
<td class="colLast"><code><strong><a href="#writeObject(java.lang.Object, org.apache.groovy.json.internal.CharBuf)">writeObject</a></strong>(java.lang.Object object, <a href='../../../../org.apache.groovy.json.internal.CharBuf.html'>CharBuf</a> buffer)</code><br></td>
</tr>
<tr class="altColor">
<td class="colFirst"><code></code></td>
<td class="colLast"><code>protected&nbsp;void</code></td>
<td class="colLast"><code><strong><a href="#writeObject(java.lang.String, java.lang.Object, org.apache.groovy.json.internal.CharBuf)">writeObject</a></strong>(java.lang.String key, java.lang.Object object, <a href='../../../../org.apache.groovy.json.internal.CharBuf.html'>CharBuf</a> buffer)</code><br>Serializes object and writes it into specified buffer.</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code></code></td>
<td class="colLast"><code>protected&nbsp;void</code></td>
<td class="colLast"><code><strong><a href="#writeRaw(java.lang.CharSequence, org.apache.groovy.json.internal.CharBuf)">writeRaw</a></strong>(java.lang.CharSequence seq, <a href='../../../../org.apache.groovy.json.internal.CharBuf.html'>CharBuf</a> buffer)</code><br>Serializes any char sequence and writes it into specified buffer
without performing any manipulation of the given text.</td>
</tr>
</table>
</ul>
</li>
<li class="blockList"><a name="method_summary"><!-- --></a>
<h3>Inherited Methods Summary</h3>
<ul class="blockList">
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Inherited Methods Summary table">
<caption><span>Inherited Methods</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Methods inherited from class</th>
<th class="colLast" scope="col">Name</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>class java.lang.Object</code></td>
<td class="colLast"><code>java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int)</code></td>
</tr>
</table>
</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="converters"><!-- --></a>
<ul class="blockListLast">
<li class="blockList">
<h4>protected&nbsp;final&nbsp;java.util.Set&lt;Converter&gt; <strong>converters</strong></h4>
<p></p>
</li>
</ul>
<a name="dateFormat"><!-- --></a>
<ul class="blockListLast">
<li class="blockList">
<h4>protected&nbsp;final&nbsp;java.lang.String <strong>dateFormat</strong></h4>
<p></p>
</li>
</ul>
<a name="dateLocale"><!-- --></a>
<ul class="blockListLast">
<li class="blockList">
<h4>protected&nbsp;final&nbsp;java.util.Locale <strong>dateLocale</strong></h4>
<p></p>
</li>
</ul>
<a name="disableUnicodeEscaping"><!-- --></a>
<ul class="blockListLast">
<li class="blockList">
<h4>protected&nbsp;final&nbsp;boolean <strong>disableUnicodeEscaping</strong></h4>
<p></p>
</li>
</ul>
<a name="excludeNulls"><!-- --></a>
<ul class="blockListLast">
<li class="blockList">
<h4>protected&nbsp;final&nbsp;boolean <strong>excludeNulls</strong></h4>
<p></p>
</li>
</ul>
<a name="excludedFieldNames"><!-- --></a>
<ul class="blockListLast">
<li class="blockList">
<h4>protected&nbsp;final&nbsp;java.util.Set&lt;java.lang.String&gt; <strong>excludedFieldNames</strong></h4>
<p></p>
</li>
</ul>
<a name="excludedFieldTypes"><!-- --></a>
<ul class="blockListLast">
<li class="blockList">
<h4>protected&nbsp;final&nbsp;java.util.Set&lt;java.lang.Class&lt;?&gt;&gt; <strong>excludedFieldTypes</strong></h4>
<p></p>
</li>
</ul>
<a name="timezone"><!-- --></a>
<ul class="blockListLast">
<li class="blockList">
<h4>protected&nbsp;final&nbsp;java.util.TimeZone <strong>timezone</strong></h4>
<p></p>
</li>
</ul>
</li>
</ul>
<!-- =========== CONSTRUCTOR DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="DefaultJsonGenerator(Options)"><!-- --></a>
<ul class="blockListLast">
<li class="blockList">
<h4>protected&nbsp;<strong>DefaultJsonGenerator</strong>(<a href='../../../../Options.html'>Options</a> options)</h4>
<p></p>
</li>
</ul>
</li>
</ul>
<!-- =========== METHOD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="findConverter(Class)"><!-- --></a>
<ul class="blockListLast">
<li class="blockList">
<h4>protected&nbsp;<a href='../../../../org/grails/web/converters/Converter.html'>Converter</a> <strong>findConverter</strong>(java.lang.Class&lt;?&gt; type)</h4>
<p> Finds a converter that can handle the given type. The first converter
that reports it can handle the type is returned, based on the order in
which the converters were specified. A <CODE>null</CODE> value will be returned
if no suitable converter can be found for the given type.
<DL><DT><B>Parameters:</B></DT><DD><code>type</code> - that this converter can handle</DD></DL><DL><DT><B>Returns:</B></DT><DD>first converter that can handle the given type; else <CODE>null</CODE>
if no compatible converters are found for the given type.</DD></DL></p>
</li>
</ul>
<a name="getObjectProperties(java.lang.Object)"><!-- --></a>
<ul class="blockListLast">
<li class="blockList">
<h4>protected&nbsp;java.util.Map&lt;?, ?&gt; <strong>getObjectProperties</strong>(java.lang.Object object)</h4>
<p></p>
</li>
</ul>
<a name="isExcludingFieldsNamed(java.lang.String)"><!-- --></a>
<ul class="blockListLast">
<li class="blockList">
<h4>@java.lang.Override<br>public&nbsp;boolean <strong>isExcludingFieldsNamed</strong>(java.lang.String name)</h4>
<p> {@inheritDoc}
</p>
</li>
</ul>
<a name="isExcludingValues(java.lang.Object)"><!-- --></a>
<ul class="blockListLast">
<li class="blockList">
<h4>@java.lang.Override<br>public&nbsp;boolean <strong>isExcludingValues</strong>(java.lang.Object value)</h4>
<p> {@inheritDoc}
</p>
</li>
</ul>
<a name="shouldExcludeType(Class)"><!-- --></a>
<ul class="blockListLast">
<li class="blockList">
<h4>protected&nbsp;boolean <strong>shouldExcludeType</strong>(java.lang.Class&lt;?&gt; type)</h4>
<p> Indicates whether the given type should be excluded from the generated output.
<DL><DT><B>Parameters:</B></DT><DD><code>type</code> - the type to check</DD></DL><DL><DT><B>Returns:</B></DT><DD><CODE>true</CODE> if the given type should not be output, else <CODE>false</CODE></DD></DL></p>
</li>
</ul>
<a name="toJson(java.lang.Object)"><!-- --></a>
<ul class="blockListLast">
<li class="blockList">
<h4>@java.lang.Override<br>public&nbsp;java.lang.String <strong>toJson</strong>(java.lang.Object object)</h4>
<p> {@inheritDoc}
</p>
</li>
</ul>
<a name="writeArray(Class, java.lang.Object, org.apache.groovy.json.internal.CharBuf)"><!-- --></a>
<ul class="blockListLast">
<li class="blockList">
<h4>protected&nbsp;void <strong>writeArray</strong>(java.lang.Class&lt;?&gt; arrayClass, java.lang.Object array, <a href='../../../../org.apache.groovy.json.internal.CharBuf.html'>CharBuf</a> buffer)</h4>
<p> Serializes array and writes it into specified buffer.
<DL><DT><B>Parameters:</B></DT><DD><code>arrayClass</code> - the Array class</DD><DD><code>array</code> - an array to serialize into JSON</DD><DD><code>buffer</code> - a CharBuf buffer to write the serialized value</DD></DL></p>
</li>
</ul>
<a name="writeCharSequence(java.lang.CharSequence, org.apache.groovy.json.internal.CharBuf)"><!-- --></a>
<ul class="blockListLast">
<li class="blockList">
<h4>protected&nbsp;void <strong>writeCharSequence</strong>(java.lang.CharSequence seq, <a href='../../../../org.apache.groovy.json.internal.CharBuf.html'>CharBuf</a> buffer)</h4>
<p> Serializes any char sequence and writes it into specified buffer.
<DL><DT><B>Parameters:</B></DT><DD><code>seq</code> - a java.lang.CharSequence to serialize and encode</DD><DD><code>buffer</code> - a CharBuf buffer to write the serialized value</DD></DL></p>
</li>
</ul>
<a name="writeDate(java.util.Date, org.apache.groovy.json.internal.CharBuf)"><!-- --></a>
<ul class="blockListLast">
<li class="blockList">
<h4>protected&nbsp;void <strong>writeDate</strong>(java.util.Date date, <a href='../../../../org.apache.groovy.json.internal.CharBuf.html'>CharBuf</a> buffer)</h4>
<p> Serializes date and writes it into specified buffer.
<DL><DT><B>Parameters:</B></DT><DD><code>date</code> - A java.util.Date to serialize into JSON string</DD><DD><code>buffer</code> - a CharBuf buffer to write the serialized value</DD></DL></p>
</li>
</ul>
<a name="writeIterator(Iterator, org.apache.groovy.json.internal.CharBuf)"><!-- --></a>
<ul class="blockListLast">
<li class="blockList">
<h4>protected&nbsp;void <strong>writeIterator</strong>(java.util.Iterator&lt;?&gt; iterator, <a href='../../../../org.apache.groovy.json.internal.CharBuf.html'>CharBuf</a> buffer)</h4>
<p> Serializes iterator and writes it into specified buffer.
<DL><DT><B>Parameters:</B></DT><DD><code>iterator</code> - a java.util.Iterator to serialize to JSON string</DD><DD><code>buffer</code> - a CharBuf buffer to write the serialized value</DD></DL></p>
</li>
</ul>
<a name="writeMap(Map, org.apache.groovy.json.internal.CharBuf)"><!-- --></a>
<ul class="blockListLast">
<li class="blockList">
<h4>protected&nbsp;void <strong>writeMap</strong>(java.util.Map&lt;?, ?&gt; map, <a href='../../../../org.apache.groovy.json.internal.CharBuf.html'>CharBuf</a> buffer)</h4>
<p> Serializes map and writes it into specified buffer.
<DL><DT><B>Parameters:</B></DT><DD><code>map</code> - a java.util.Map to serialize to JSON string</DD><DD><code>buffer</code> - a CharBuf buffer to write the serialized value</DD></DL></p>
</li>
</ul>
<a name="writeMapEntry(java.lang.String, java.lang.Object, org.apache.groovy.json.internal.CharBuf)"><!-- --></a>
<ul class="blockListLast">
<li class="blockList">
<h4>protected&nbsp;void <strong>writeMapEntry</strong>(java.lang.String key, java.lang.Object value, <a href='../../../../org.apache.groovy.json.internal.CharBuf.html'>CharBuf</a> buffer)</h4>
<p> Serializes a map entry and writes it into specified buffer.
<DL><DT><B>Parameters:</B></DT><DD><code>key</code> - a Map.Entry key</DD><DD><code>value</code> - a Map.Entry value</DD><DD><code>buffer</code> - a CharBuf buffer to write the serialized value</DD></DL></p>
</li>
</ul>
<a name="writeNumber(Class, java.lang.Number, org.apache.groovy.json.internal.CharBuf)"><!-- --></a>
<ul class="blockListLast">
<li class="blockList">
<h4>protected&nbsp;void <strong>writeNumber</strong>(java.lang.Class&lt;?&gt; numberClass, java.lang.Number value, <a href='../../../../org.apache.groovy.json.internal.CharBuf.html'>CharBuf</a> buffer)</h4>
<p> Serializes Number value and writes it into specified buffer.
<DL><DT><B>Parameters:</B></DT><DD><code>numberClass</code> - The object java.lang.Class</DD><DD><code>value</code> - a java.lang.Number</DD><DD><code>buffer</code> - a CharBuf buffer to write the serialized value</DD></DL></p>
</li>
</ul>
<a name="writeObject(java.lang.Object, org.apache.groovy.json.internal.CharBuf)"><!-- --></a>
<ul class="blockListLast">
<li class="blockList">
<h4>protected&nbsp;void <strong>writeObject</strong>(java.lang.Object object, <a href='../../../../org.apache.groovy.json.internal.CharBuf.html'>CharBuf</a> buffer)</h4>
<p></p>
</li>
</ul>
<a name="writeObject(java.lang.String, java.lang.Object, org.apache.groovy.json.internal.CharBuf)"><!-- --></a>
<ul class="blockListLast">
<li class="blockList">
<h4>protected&nbsp;void <strong>writeObject</strong>(java.lang.String key, java.lang.Object object, <a href='../../../../org.apache.groovy.json.internal.CharBuf.html'>CharBuf</a> buffer)</h4>
<p> Serializes object and writes it into specified buffer.
<DL><DT><B>Parameters:</B></DT><DD><code>key</code> - the name for the value</DD><DD><code>object</code> - to convert to JSON</DD><DD><code>buffer</code> - a CharBuf buffer to write the serialized value</DD></DL></p>
</li>
</ul>
<a name="writeRaw(java.lang.CharSequence, org.apache.groovy.json.internal.CharBuf)"><!-- --></a>
<ul class="blockListLast">
<li class="blockList">
<h4>protected&nbsp;void <strong>writeRaw</strong>(java.lang.CharSequence seq, <a href='../../../../org.apache.groovy.json.internal.CharBuf.html'>CharBuf</a> buffer)</h4>
<p> Serializes any char sequence and writes it into specified buffer
without performing any manipulation of the given text.
<DL><DT><B>Parameters:</B></DT><DD><code>seq</code> - a java.lang.CharSequence to serialize to string</DD><DD><code>buffer</code> - a CharBuf buffer to write the serialized value</DD></DL></p>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</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="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<div>
<ul class="navList">
<li><a href="../../../../index.html?grails/plugin/json/builder/DefaultJsonGenerator" target="_top">Frames</a></li>
<li><a href="DefaultJsonGenerator.html" target="_top">No Frames</a></li>
</ul>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested_summary">Nested</a></li>&nbsp;&nbsp;&nbsp;<li><a href="#field_summary">Field</a></li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<li><a href="#constructor_summary">Constructor</a></li>&nbsp;&nbsp;&nbsp;<li><a href="#method_summary">Method</a></li>&nbsp;&nbsp;&nbsp;
</ul>
<ul class="subNavList">
<li>&nbsp;|&nbsp;Detail:&nbsp;</li>
<li><a href="#field_detail">Field</a></li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<li><a href="#constructor_detail">Constructor</a></li>&nbsp;&nbsp;&nbsp;<li><a href="#method_detail">Method</a></li>&nbsp;&nbsp;&nbsp;
</ul>
</div>
<p><!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(["setDoNotTrack", true]);
_paq.push(["disableCookies"]);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="https://analytics.apache.org/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '79']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Matomo Code --></p>
<a name="skip-navbar_bottom">
<!-- -->
</a>
</div>
</div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>