source: branches/objectmq-1.0/lib/rabbitmq-java-client-javadoc-3.0.1/com/rabbitmq/tools/json/JSONWriter.html

Last change on this file was 33, checked in by amoreno, 11 years ago

new release version

File size: 13.6 KB
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2<!--NewPage-->
3<HTML>
4<HEAD>
5<!-- Generated by javadoc (build 1.6.0_18) on Tue Dec 11 11:47:10 GMT 2012 -->
6<TITLE>
7JSONWriter
8</TITLE>
9
10<META NAME="date" CONTENT="2012-12-11">
11
12<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
13
14<SCRIPT type="text/javascript">
15function windowTitle()
16{
17    if (location.href.indexOf('is-external=true') == -1) {
18        parent.document.title="JSONWriter";
19    }
20}
21</SCRIPT>
22<NOSCRIPT>
23</NOSCRIPT>
24
25</HEAD>
26
27<BODY BGCOLOR="white" onload="windowTitle();">
28<HR>
29
30
31<!-- ========= START OF TOP NAVBAR ======= -->
32<A NAME="navbar_top"><!-- --></A>
33<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
34<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
35<TR>
36<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
37<A NAME="navbar_top_firstrow"><!-- --></A>
38<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
39  <TR ALIGN="center" VALIGN="top">
40  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
41  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
42  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
43  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
44  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
45  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
46  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
47  </TR>
48</TABLE>
49</TD>
50<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
51</EM>
52</TD>
53</TR>
54
55<TR>
56<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
57&nbsp;<A HREF="../../../../com/rabbitmq/tools/json/JSONUtil.html" title="class in com.rabbitmq.tools.json"><B>PREV CLASS</B></A>&nbsp;
58&nbsp;NEXT CLASS</FONT></TD>
59<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
60  <A HREF="../../../../index.html?com/rabbitmq/tools/json/JSONWriter.html" target="_top"><B>FRAMES</B></A>  &nbsp;
61&nbsp;<A HREF="JSONWriter.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
62&nbsp;<SCRIPT type="text/javascript">
63  <!--
64  if(window==top) {
65    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
66  }
67  //-->
68</SCRIPT>
69<NOSCRIPT>
70  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
71</NOSCRIPT>
72
73
74</FONT></TD>
75</TR>
76<TR>
77<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
78  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
79<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
80DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
81</TR>
82</TABLE>
83<A NAME="skip-navbar_top"></A>
84<!-- ========= END OF TOP NAVBAR ========= -->
85
86<HR>
87<!-- ======== START OF CLASS DATA ======== -->
88<H2>
89<FONT SIZE="-1">
90com.rabbitmq.tools.json</FONT>
91<BR>
92Class JSONWriter</H2>
93<PRE>
94java.lang.Object
95  <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.rabbitmq.tools.json.JSONWriter</B>
96</PRE>
97<HR>
98<DL>
99<DT><PRE>public class <B>JSONWriter</B><DT>extends java.lang.Object</DL>
100</PRE>
101
102<P>
103<HR>
104
105<P>
106
107<!-- ======== CONSTRUCTOR SUMMARY ======== -->
108
109<A NAME="constructor_summary"><!-- --></A>
110<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
111<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
112<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
113<B>Constructor Summary</B></FONT></TH>
114</TR>
115<TR BGCOLOR="white" CLASS="TableRowColor">
116<TD><CODE><B><A HREF="../../../../com/rabbitmq/tools/json/JSONWriter.html#JSONWriter()">JSONWriter</A></B>()</CODE>
117
118<BR>
119&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
120</TR>
121<TR BGCOLOR="white" CLASS="TableRowColor">
122<TD><CODE><B><A HREF="../../../../com/rabbitmq/tools/json/JSONWriter.html#JSONWriter(boolean)">JSONWriter</A></B>(boolean&nbsp;indenting)</CODE>
123
124<BR>
125&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
126</TR>
127</TABLE>
128&nbsp;
129<!-- ========== METHOD SUMMARY =========== -->
130
131<A NAME="method_summary"><!-- --></A>
132<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
133<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
134<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
135<B>Method Summary</B></FONT></TH>
136</TR>
137<TR BGCOLOR="white" CLASS="TableRowColor">
138<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
139<CODE>&nbsp;boolean</CODE></FONT></TD>
140<TD><CODE><B><A HREF="../../../../com/rabbitmq/tools/json/JSONWriter.html#getIndentMode()">getIndentMode</A></B>()</CODE>
141
142<BR>
143&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
144</TR>
145<TR BGCOLOR="white" CLASS="TableRowColor">
146<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
147<CODE>&nbsp;void</CODE></FONT></TD>
148<TD><CODE><B><A HREF="../../../../com/rabbitmq/tools/json/JSONWriter.html#setIndentMode(boolean)">setIndentMode</A></B>(boolean&nbsp;value)</CODE>
149
150<BR>
151&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
152</TR>
153<TR BGCOLOR="white" CLASS="TableRowColor">
154<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
155<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
156<TD><CODE><B><A HREF="../../../../com/rabbitmq/tools/json/JSONWriter.html#write(boolean)">write</A></B>(boolean&nbsp;b)</CODE>
157
158<BR>
159&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
160</TR>
161<TR BGCOLOR="white" CLASS="TableRowColor">
162<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
163<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
164<TD><CODE><B><A HREF="../../../../com/rabbitmq/tools/json/JSONWriter.html#write(char)">write</A></B>(char&nbsp;c)</CODE>
165
166<BR>
167&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
168</TR>
169<TR BGCOLOR="white" CLASS="TableRowColor">
170<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
171<CODE>&nbsp;java.lang.Object</CODE></FONT></TD>
172<TD><CODE><B><A HREF="../../../../com/rabbitmq/tools/json/JSONWriter.html#write(double)">write</A></B>(double&nbsp;d)</CODE>
173
174<BR>
175&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
176</TR>
177<TR BGCOLOR="white" CLASS="TableRowColor">
178<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
179<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
180<TD><CODE><B><A HREF="../../../../com/rabbitmq/tools/json/JSONWriter.html#write(long)">write</A></B>(long&nbsp;n)</CODE>
181
182<BR>
183&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
184</TR>
185<TR BGCOLOR="white" CLASS="TableRowColor">
186<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
187<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
188<TD><CODE><B><A HREF="../../../../com/rabbitmq/tools/json/JSONWriter.html#write(java.lang.Object)">write</A></B>(java.lang.Object&nbsp;object)</CODE>
189
190<BR>
191&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
192</TR>
193<TR BGCOLOR="white" CLASS="TableRowColor">
194<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
195<CODE>&nbsp;void</CODE></FONT></TD>
196<TD><CODE><B><A HREF="../../../../com/rabbitmq/tools/json/JSONWriter.html#writeLimited(java.lang.Class, java.lang.Object, java.lang.String[])">writeLimited</A></B>(java.lang.Class&lt;?&gt;&nbsp;klass,
197             java.lang.Object&nbsp;object,
198             java.lang.String[]&nbsp;properties)</CODE>
199
200<BR>
201&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write only a certain subset of the object's properties and fields.</TD>
202</TR>
203</TABLE>
204&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
205<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
206<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
207<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
208</TR>
209<TR BGCOLOR="white" CLASS="TableRowColor">
210<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
211</TR>
212</TABLE>
213&nbsp;
214<P>
215
216<!-- ========= CONSTRUCTOR DETAIL ======== -->
217
218<A NAME="constructor_detail"><!-- --></A>
219<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
220<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
221<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
222<B>Constructor Detail</B></FONT></TH>
223</TR>
224</TABLE>
225
226<A NAME="JSONWriter()"><!-- --></A><H3>
227JSONWriter</H3>
228<PRE>
229public <B>JSONWriter</B>()</PRE>
230<DL>
231</DL>
232<HR>
233
234<A NAME="JSONWriter(boolean)"><!-- --></A><H3>
235JSONWriter</H3>
236<PRE>
237public <B>JSONWriter</B>(boolean&nbsp;indenting)</PRE>
238<DL>
239</DL>
240
241<!-- ============ METHOD DETAIL ========== -->
242
243<A NAME="method_detail"><!-- --></A>
244<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
245<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
246<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
247<B>Method Detail</B></FONT></TH>
248</TR>
249</TABLE>
250
251<A NAME="getIndentMode()"><!-- --></A><H3>
252getIndentMode</H3>
253<PRE>
254public boolean <B>getIndentMode</B>()</PRE>
255<DL>
256<DD><DL>
257</DL>
258</DD>
259</DL>
260<HR>
261
262<A NAME="setIndentMode(boolean)"><!-- --></A><H3>
263setIndentMode</H3>
264<PRE>
265public void <B>setIndentMode</B>(boolean&nbsp;value)</PRE>
266<DL>
267<DD><DL>
268</DL>
269</DD>
270</DL>
271<HR>
272
273<A NAME="write(java.lang.Object)"><!-- --></A><H3>
274write</H3>
275<PRE>
276public java.lang.String <B>write</B>(java.lang.Object&nbsp;object)</PRE>
277<DL>
278<DD><DL>
279</DL>
280</DD>
281</DL>
282<HR>
283
284<A NAME="write(long)"><!-- --></A><H3>
285write</H3>
286<PRE>
287public java.lang.String <B>write</B>(long&nbsp;n)</PRE>
288<DL>
289<DD><DL>
290</DL>
291</DD>
292</DL>
293<HR>
294
295<A NAME="write(double)"><!-- --></A><H3>
296write</H3>
297<PRE>
298public java.lang.Object <B>write</B>(double&nbsp;d)</PRE>
299<DL>
300<DD><DL>
301</DL>
302</DD>
303</DL>
304<HR>
305
306<A NAME="write(char)"><!-- --></A><H3>
307write</H3>
308<PRE>
309public java.lang.String <B>write</B>(char&nbsp;c)</PRE>
310<DL>
311<DD><DL>
312</DL>
313</DD>
314</DL>
315<HR>
316
317<A NAME="write(boolean)"><!-- --></A><H3>
318write</H3>
319<PRE>
320public java.lang.String <B>write</B>(boolean&nbsp;b)</PRE>
321<DL>
322<DD><DL>
323</DL>
324</DD>
325</DL>
326<HR>
327
328<A NAME="writeLimited(java.lang.Class, java.lang.Object, java.lang.String[])"><!-- --></A><H3>
329writeLimited</H3>
330<PRE>
331public void <B>writeLimited</B>(java.lang.Class&lt;?&gt;&nbsp;klass,
332                         java.lang.Object&nbsp;object,
333                         java.lang.String[]&nbsp;properties)</PRE>
334<DL>
335<DD>Write only a certain subset of the object's properties and fields.
336<P>
337<DD><DL>
338<DT><B>Parameters:</B><DD><CODE>klass</CODE> - the class to look up properties etc in<DD><CODE>object</CODE> - the object<DD><CODE>properties</CODE> - explicit list of property/field names to include - may be null for "all"</DL>
339</DD>
340</DL>
341<!-- ========= END OF CLASS DATA ========= -->
342<HR>
343
344
345<!-- ======= START OF BOTTOM NAVBAR ====== -->
346<A NAME="navbar_bottom"><!-- --></A>
347<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
348<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
349<TR>
350<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
351<A NAME="navbar_bottom_firstrow"><!-- --></A>
352<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
353  <TR ALIGN="center" VALIGN="top">
354  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
355  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
356  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
357  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
358  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
359  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
360  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
361  </TR>
362</TABLE>
363</TD>
364<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
365</EM>
366</TD>
367</TR>
368
369<TR>
370<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
371&nbsp;<A HREF="../../../../com/rabbitmq/tools/json/JSONUtil.html" title="class in com.rabbitmq.tools.json"><B>PREV CLASS</B></A>&nbsp;
372&nbsp;NEXT CLASS</FONT></TD>
373<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
374  <A HREF="../../../../index.html?com/rabbitmq/tools/json/JSONWriter.html" target="_top"><B>FRAMES</B></A>  &nbsp;
375&nbsp;<A HREF="JSONWriter.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
376&nbsp;<SCRIPT type="text/javascript">
377  <!--
378  if(window==top) {
379    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
380  }
381  //-->
382</SCRIPT>
383<NOSCRIPT>
384  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
385</NOSCRIPT>
386
387
388</FONT></TD>
389</TR>
390<TR>
391<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
392  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
393<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
394DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
395</TR>
396</TABLE>
397<A NAME="skip-navbar_bottom"></A>
398<!-- ======== END OF BOTTOM NAVBAR ======= -->
399
400<HR>
401
402</BODY>
403</HTML>
Note: See TracBrowser for help on using the repository browser.