/Prototipo/Servlet/lib/xstream-distribution-1.4.1-bin/xstream-1.4.1/docs/javadoc/com/thoughtworks/xstream/io/json/AbstractJsonWriter.html

http://prototipomemoria.googlecode.com/ · HTML · 798 lines · 693 code · 81 blank · 24 comment · 0 complexity · 0428b873e26c7ec1fcd66c7a1e145101 MD5 · raw file

  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_26) on Thu Aug 11 04:40:24 CEST 2011 -->
  6. <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
  7. <TITLE>
  8. AbstractJsonWriter (XStream Core 1.4.1 API)
  9. </TITLE>
  10. <META NAME="date" CONTENT="2011-08-11">
  11. <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
  12. <SCRIPT type="text/javascript">
  13. function windowTitle()
  14. {
  15. if (location.href.indexOf('is-external=true') == -1) {
  16. parent.document.title="AbstractJsonWriter (XStream Core 1.4.1 API)";
  17. }
  18. }
  19. </SCRIPT>
  20. <NOSCRIPT>
  21. </NOSCRIPT>
  22. </HEAD>
  23. <BODY BGCOLOR="white" onload="windowTitle();">
  24. <HR>
  25. <!-- ========= START OF TOP NAVBAR ======= -->
  26. <A NAME="navbar_top"><!-- --></A>
  27. <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
  28. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  29. <TR>
  30. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  31. <A NAME="navbar_top_firstrow"><!-- --></A>
  32. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  33. <TR ALIGN="center" VALIGN="top">
  34. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  35. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  36. <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  37. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/AbstractJsonWriter.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  38. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  39. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  40. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  41. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  42. </TR>
  43. </TABLE>
  44. </TD>
  45. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  46. </EM>
  47. </TD>
  48. </TR>
  49. <TR>
  50. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  51. &nbsp;PREV CLASS&nbsp;
  52. &nbsp;<A HREF="../../../../../com/thoughtworks/xstream/io/json/AbstractJsonWriter.Type.html" title="class in com.thoughtworks.xstream.io.json"><B>NEXT CLASS</B></A></FONT></TD>
  53. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  54. <A HREF="../../../../../index.html?com/thoughtworks/xstream/io/json/AbstractJsonWriter.html" target="_top"><B>FRAMES</B></A> &nbsp;
  55. &nbsp;<A HREF="AbstractJsonWriter.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  56. &nbsp;<SCRIPT type="text/javascript">
  57. <!--
  58. if(window==top) {
  59. document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  60. }
  61. //-->
  62. </SCRIPT>
  63. <NOSCRIPT>
  64. <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
  65. </NOSCRIPT>
  66. </FONT></TD>
  67. </TR>
  68. <TR>
  69. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  70. SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  71. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  72. DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  73. </TR>
  74. </TABLE>
  75. <A NAME="skip-navbar_top"></A>
  76. <!-- ========= END OF TOP NAVBAR ========= -->
  77. <HR>
  78. <!-- ======== START OF CLASS DATA ======== -->
  79. <H2>
  80. <FONT SIZE="-1">
  81. com.thoughtworks.xstream.io.json</FONT>
  82. <BR>
  83. Class AbstractJsonWriter</H2>
  84. <PRE>
  85. <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A>
  86. <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../../com/thoughtworks/xstream/io/AbstractWriter.html" title="class in com.thoughtworks.xstream.io">com.thoughtworks.xstream.io.AbstractWriter</A>
  87. <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>com.thoughtworks.xstream.io.json.AbstractJsonWriter</B>
  88. </PRE>
  89. <DL>
  90. <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../../com/thoughtworks/xstream/io/ExtendedHierarchicalStreamWriter.html" title="interface in com.thoughtworks.xstream.io">ExtendedHierarchicalStreamWriter</A>, <A HREF="../../../../../com/thoughtworks/xstream/io/HierarchicalStreamWriter.html" title="interface in com.thoughtworks.xstream.io">HierarchicalStreamWriter</A></DD>
  91. </DL>
  92. <DL>
  93. <DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../../com/thoughtworks/xstream/io/json/JsonWriter.html" title="class in com.thoughtworks.xstream.io.json">JsonWriter</A></DD>
  94. </DL>
  95. <HR>
  96. <DL>
  97. <DT><PRE>public abstract class <B>AbstractJsonWriter</B><DT>extends <A HREF="../../../../../com/thoughtworks/xstream/io/AbstractWriter.html" title="class in com.thoughtworks.xstream.io">AbstractWriter</A></DL>
  98. </PRE>
  99. <P>
  100. An abstract implementation of a writer that calls abstract methods to build JSON structures.
  101. Note, that XStream's implicit collection feature is only compatible with the syntax in
  102. <A HREF="../../../../../com/thoughtworks/xstream/io/json/AbstractJsonWriter.html#EXPLICIT_MODE"><CODE>EXPLICIT_MODE</CODE></A>.
  103. <P>
  104. <P>
  105. <DL>
  106. <DT><B>Since:</B></DT>
  107. <DD>1.4</DD>
  108. <DT><B>Author:</B></DT>
  109. <DD>J&ouml;rg Schaible</DD>
  110. </DL>
  111. <HR>
  112. <P>
  113. <!-- ======== NESTED CLASS SUMMARY ======== -->
  114. <A NAME="nested_class_summary"><!-- --></A>
  115. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  116. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  117. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  118. <B>Nested Class Summary</B></FONT></TH>
  119. </TR>
  120. <TR BGCOLOR="white" CLASS="TableRowColor">
  121. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  122. <CODE>static&nbsp;class</CODE></FONT></TD>
  123. <TD><CODE><B><A HREF="../../../../../com/thoughtworks/xstream/io/json/AbstractJsonWriter.Type.html" title="class in com.thoughtworks.xstream.io.json">AbstractJsonWriter.Type</A></B></CODE>
  124. <BR>
  125. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  126. </TR>
  127. </TABLE>
  128. &nbsp;<!-- =========== FIELD SUMMARY =========== -->
  129. <A NAME="field_summary"><!-- --></A>
  130. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  131. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  132. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  133. <B>Field Summary</B></FONT></TH>
  134. </TR>
  135. <TR BGCOLOR="white" CLASS="TableRowColor">
  136. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  137. <CODE>static&nbsp;int</CODE></FONT></TD>
  138. <TD><CODE><B><A HREF="../../../../../com/thoughtworks/xstream/io/json/AbstractJsonWriter.html#DROP_ROOT_MODE">DROP_ROOT_MODE</A></B></CODE>
  139. <BR>
  140. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DROP_ROOT_MODE drops the JSON root node.</TD>
  141. </TR>
  142. <TR BGCOLOR="white" CLASS="TableRowColor">
  143. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  144. <CODE>static&nbsp;int</CODE></FONT></TD>
  145. <TD><CODE><B><A HREF="../../../../../com/thoughtworks/xstream/io/json/AbstractJsonWriter.html#EXPLICIT_MODE">EXPLICIT_MODE</A></B></CODE>
  146. <BR>
  147. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;EXPLICIT_MODE assures that all data has its explicit equivalent in the resulting JSON.</TD>
  148. </TR>
  149. <TR BGCOLOR="white" CLASS="TableRowColor">
  150. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  151. <CODE>static&nbsp;int</CODE></FONT></TD>
  152. <TD><CODE><B><A HREF="../../../../../com/thoughtworks/xstream/io/json/AbstractJsonWriter.html#STRICT_MODE">STRICT_MODE</A></B></CODE>
  153. <BR>
  154. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;STRICT_MODE prevents invalid JSON for single value objects when dropping the root.</TD>
  155. </TR>
  156. </TABLE>
  157. &nbsp;
  158. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  159. <A NAME="constructor_summary"><!-- --></A>
  160. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  161. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  162. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  163. <B>Constructor Summary</B></FONT></TH>
  164. </TR>
  165. <TR BGCOLOR="white" CLASS="TableRowColor">
  166. <TD><CODE><B><A HREF="../../../../../com/thoughtworks/xstream/io/json/AbstractJsonWriter.html#AbstractJsonWriter()">AbstractJsonWriter</A></B>()</CODE>
  167. <BR>
  168. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Construct a JSON writer.</TD>
  169. </TR>
  170. <TR BGCOLOR="white" CLASS="TableRowColor">
  171. <TD><CODE><B><A HREF="../../../../../com/thoughtworks/xstream/io/json/AbstractJsonWriter.html#AbstractJsonWriter(int)">AbstractJsonWriter</A></B>(int&nbsp;mode)</CODE>
  172. <BR>
  173. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Construct a JSON writer with a special mode.</TD>
  174. </TR>
  175. <TR BGCOLOR="white" CLASS="TableRowColor">
  176. <TD><CODE><B><A HREF="../../../../../com/thoughtworks/xstream/io/json/AbstractJsonWriter.html#AbstractJsonWriter(int, com.thoughtworks.xstream.io.naming.NameCoder)">AbstractJsonWriter</A></B>(int&nbsp;mode,
  177. <A HREF="../../../../../com/thoughtworks/xstream/io/naming/NameCoder.html" title="interface in com.thoughtworks.xstream.io.naming">NameCoder</A>&nbsp;nameCoder)</CODE>
  178. <BR>
  179. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Construct a JSON writer with a special mode and name coder.</TD>
  180. </TR>
  181. <TR BGCOLOR="white" CLASS="TableRowColor">
  182. <TD><CODE><B><A HREF="../../../../../com/thoughtworks/xstream/io/json/AbstractJsonWriter.html#AbstractJsonWriter(com.thoughtworks.xstream.io.naming.NameCoder)">AbstractJsonWriter</A></B>(<A HREF="../../../../../com/thoughtworks/xstream/io/naming/NameCoder.html" title="interface in com.thoughtworks.xstream.io.naming">NameCoder</A>&nbsp;nameCoder)</CODE>
  183. <BR>
  184. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Construct a JSON writer with a special name coder.</TD>
  185. </TR>
  186. </TABLE>
  187. &nbsp;
  188. <!-- ========== METHOD SUMMARY =========== -->
  189. <A NAME="method_summary"><!-- --></A>
  190. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  191. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  192. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  193. <B>Method Summary</B></FONT></TH>
  194. </TR>
  195. <TR BGCOLOR="white" CLASS="TableRowColor">
  196. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  197. <CODE>&nbsp;void</CODE></FONT></TD>
  198. <TD><CODE><B><A HREF="../../../../../com/thoughtworks/xstream/io/json/AbstractJsonWriter.html#addAttribute(java.lang.String, java.lang.String)">addAttribute</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;name,
  199. <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;value)</CODE>
  200. <BR>
  201. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  202. </TR>
  203. <TR BGCOLOR="white" CLASS="TableRowColor">
  204. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  205. <CODE>protected abstract &nbsp;void</CODE></FONT></TD>
  206. <TD><CODE><B><A HREF="../../../../../com/thoughtworks/xstream/io/json/AbstractJsonWriter.html#addLabel(java.lang.String)">addLabel</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;name)</CODE>
  207. <BR>
  208. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Add a label to a JSON object.</TD>
  209. </TR>
  210. <TR BGCOLOR="white" CLASS="TableRowColor">
  211. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  212. <CODE>protected abstract &nbsp;void</CODE></FONT></TD>
  213. <TD><CODE><B><A HREF="../../../../../com/thoughtworks/xstream/io/json/AbstractJsonWriter.html#addValue(java.lang.String, com.thoughtworks.xstream.io.json.AbstractJsonWriter.Type)">addValue</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;value,
  214. <A HREF="../../../../../com/thoughtworks/xstream/io/json/AbstractJsonWriter.Type.html" title="class in com.thoughtworks.xstream.io.json">AbstractJsonWriter.Type</A>&nbsp;type)</CODE>
  215. <BR>
  216. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Add a value to a JSON object's label or to an array.</TD>
  217. </TR>
  218. <TR BGCOLOR="white" CLASS="TableRowColor">
  219. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  220. <CODE>protected abstract &nbsp;void</CODE></FONT></TD>
  221. <TD><CODE><B><A HREF="../../../../../com/thoughtworks/xstream/io/json/AbstractJsonWriter.html#endArray()">endArray</A></B>()</CODE>
  222. <BR>
  223. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End the JSON array.</TD>
  224. </TR>
  225. <TR BGCOLOR="white" CLASS="TableRowColor">
  226. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  227. <CODE>&nbsp;void</CODE></FONT></TD>
  228. <TD><CODE><B><A HREF="../../../../../com/thoughtworks/xstream/io/json/AbstractJsonWriter.html#endNode()">endNode</A></B>()</CODE>
  229. <BR>
  230. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  231. </TR>
  232. <TR BGCOLOR="white" CLASS="TableRowColor">
  233. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  234. <CODE>protected abstract &nbsp;void</CODE></FONT></TD>
  235. <TD><CODE><B><A HREF="../../../../../com/thoughtworks/xstream/io/json/AbstractJsonWriter.html#endObject()">endObject</A></B>()</CODE>
  236. <BR>
  237. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End the JSON object.</TD>
  238. </TR>
  239. <TR BGCOLOR="white" CLASS="TableRowColor">
  240. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  241. <CODE>protected &nbsp;boolean</CODE></FONT></TD>
  242. <TD><CODE><B><A HREF="../../../../../com/thoughtworks/xstream/io/json/AbstractJsonWriter.html#isArray(java.lang.Class)">isArray</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A>&nbsp;clazz)</CODE>
  243. <BR>
  244. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Method to declare various Java types to be handles as JSON array.</TD>
  245. </TR>
  246. <TR BGCOLOR="white" CLASS="TableRowColor">
  247. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  248. <CODE>protected abstract &nbsp;void</CODE></FONT></TD>
  249. <TD><CODE><B><A HREF="../../../../../com/thoughtworks/xstream/io/json/AbstractJsonWriter.html#nextElement()">nextElement</A></B>()</CODE>
  250. <BR>
  251. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Prepare a JSON object or array for another element.</TD>
  252. </TR>
  253. <TR BGCOLOR="white" CLASS="TableRowColor">
  254. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  255. <CODE>&nbsp;void</CODE></FONT></TD>
  256. <TD><CODE><B><A HREF="../../../../../com/thoughtworks/xstream/io/json/AbstractJsonWriter.html#setValue(java.lang.String)">setValue</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;text)</CODE>
  257. <BR>
  258. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write the value (text content) of the current node.</TD>
  259. </TR>
  260. <TR BGCOLOR="white" CLASS="TableRowColor">
  261. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  262. <CODE>protected abstract &nbsp;void</CODE></FONT></TD>
  263. <TD><CODE><B><A HREF="../../../../../com/thoughtworks/xstream/io/json/AbstractJsonWriter.html#startArray()">startArray</A></B>()</CODE>
  264. <BR>
  265. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Start a JSON array.</TD>
  266. </TR>
  267. <TR BGCOLOR="white" CLASS="TableRowColor">
  268. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  269. <CODE>&nbsp;void</CODE></FONT></TD>
  270. <TD><CODE><B><A HREF="../../../../../com/thoughtworks/xstream/io/json/AbstractJsonWriter.html#startNode(java.lang.String)">startNode</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;name)</CODE>
  271. <BR>
  272. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  273. </TR>
  274. <TR BGCOLOR="white" CLASS="TableRowColor">
  275. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  276. <CODE>&nbsp;void</CODE></FONT></TD>
  277. <TD><CODE><B><A HREF="../../../../../com/thoughtworks/xstream/io/json/AbstractJsonWriter.html#startNode(java.lang.String, java.lang.Class)">startNode</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;name,
  278. <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A>&nbsp;clazz)</CODE>
  279. <BR>
  280. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  281. </TR>
  282. <TR BGCOLOR="white" CLASS="TableRowColor">
  283. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  284. <CODE>protected abstract &nbsp;void</CODE></FONT></TD>
  285. <TD><CODE><B><A HREF="../../../../../com/thoughtworks/xstream/io/json/AbstractJsonWriter.html#startObject()">startObject</A></B>()</CODE>
  286. <BR>
  287. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Start a JSON object.</TD>
  288. </TR>
  289. </TABLE>
  290. &nbsp;<A NAME="methods_inherited_from_class_com.thoughtworks.xstream.io.AbstractWriter"><!-- --></A>
  291. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  292. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  293. <TH ALIGN="left"><B>Methods inherited from class com.thoughtworks.xstream.io.<A HREF="../../../../../com/thoughtworks/xstream/io/AbstractWriter.html" title="class in com.thoughtworks.xstream.io">AbstractWriter</A></B></TH>
  294. </TR>
  295. <TR BGCOLOR="white" CLASS="TableRowColor">
  296. <TD><CODE><A HREF="../../../../../com/thoughtworks/xstream/io/AbstractWriter.html#encodeAttribute(java.lang.String)">encodeAttribute</A>, <A HREF="../../../../../com/thoughtworks/xstream/io/AbstractWriter.html#encodeNode(java.lang.String)">encodeNode</A>, <A HREF="../../../../../com/thoughtworks/xstream/io/AbstractWriter.html#underlyingWriter()">underlyingWriter</A></CODE></TD>
  297. </TR>
  298. </TABLE>
  299. &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
  300. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  301. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  302. <TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH>
  303. </TR>
  304. <TR BGCOLOR="white" CLASS="TableRowColor">
  305. <TD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
  306. </TR>
  307. </TABLE>
  308. &nbsp;<A NAME="methods_inherited_from_class_com.thoughtworks.xstream.io.HierarchicalStreamWriter"><!-- --></A>
  309. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  310. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  311. <TH ALIGN="left"><B>Methods inherited from interface com.thoughtworks.xstream.io.<A HREF="../../../../../com/thoughtworks/xstream/io/HierarchicalStreamWriter.html" title="interface in com.thoughtworks.xstream.io">HierarchicalStreamWriter</A></B></TH>
  312. </TR>
  313. <TR BGCOLOR="white" CLASS="TableRowColor">
  314. <TD><CODE><A HREF="../../../../../com/thoughtworks/xstream/io/HierarchicalStreamWriter.html#close()">close</A>, <A HREF="../../../../../com/thoughtworks/xstream/io/HierarchicalStreamWriter.html#flush()">flush</A></CODE></TD>
  315. </TR>
  316. </TABLE>
  317. &nbsp;
  318. <P>
  319. <!-- ============ FIELD DETAIL =========== -->
  320. <A NAME="field_detail"><!-- --></A>
  321. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  322. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  323. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  324. <B>Field Detail</B></FONT></TH>
  325. </TR>
  326. </TABLE>
  327. <A NAME="DROP_ROOT_MODE"><!-- --></A><H3>
  328. DROP_ROOT_MODE</H3>
  329. <PRE>
  330. public static final int <B>DROP_ROOT_MODE</B></PRE>
  331. <DL>
  332. <DD>DROP_ROOT_MODE drops the JSON root node.
  333. <p>
  334. The root node is the first level of the JSON object i.e.
  335. <pre>
  336. { &quot;person&quot;: {
  337. &quot;name&quot;: &quot;Joe&quot;
  338. }}
  339. </pre>
  340. will be written without root simply as
  341. <pre>
  342. {
  343. &quot;name&quot;: &quot;Joe&quot;
  344. }
  345. </pre>
  346. Without a root node, the top level element might now also be an array. However, it is
  347. possible to generate invalid JSON unless <A HREF="../../../../../com/thoughtworks/xstream/io/json/AbstractJsonWriter.html#STRICT_MODE"><CODE>STRICT_MODE</CODE></A> is also set.
  348. </p>
  349. <P>
  350. <DL>
  351. <DT><B>Since:</B></DT>
  352. <DD>1.3.1</DD>
  353. <DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.thoughtworks.xstream.io.json.AbstractJsonWriter.DROP_ROOT_MODE">Constant Field Values</A></DL>
  354. </DL>
  355. <HR>
  356. <A NAME="STRICT_MODE"><!-- --></A><H3>
  357. STRICT_MODE</H3>
  358. <PRE>
  359. public static final int <B>STRICT_MODE</B></PRE>
  360. <DL>
  361. <DD>STRICT_MODE prevents invalid JSON for single value objects when dropping the root.
  362. <p>
  363. The mode is only useful in combination with the <A HREF="../../../../../com/thoughtworks/xstream/io/json/AbstractJsonWriter.html#DROP_ROOT_MODE"><CODE>DROP_ROOT_MODE</CODE></A>. An object with a
  364. single value as first node i.e.
  365. <pre>
  366. { &quot;name&quot;: &quot;Joe&quot; }
  367. </pre>
  368. is simply written as
  369. <pre>
  370. &quot;Joe&quot;
  371. </pre>
  372. However, this is no longer valid JSON. Therefore you can activate <A HREF="../../../../../com/thoughtworks/xstream/io/json/AbstractJsonWriter.html#STRICT_MODE"><CODE>STRICT_MODE</CODE></A>
  373. and a <A HREF="../../../../../com/thoughtworks/xstream/converters/ConversionException.html" title="class in com.thoughtworks.xstream.converters"><CODE>ConversionException</CODE></A> is thrown instead.
  374. </p>
  375. <P>
  376. <DL>
  377. <DT><B>Since:</B></DT>
  378. <DD>1.3.1</DD>
  379. <DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.thoughtworks.xstream.io.json.AbstractJsonWriter.STRICT_MODE">Constant Field Values</A></DL>
  380. </DL>
  381. <HR>
  382. <A NAME="EXPLICIT_MODE"><!-- --></A><H3>
  383. EXPLICIT_MODE</H3>
  384. <PRE>
  385. public static final int <B>EXPLICIT_MODE</B></PRE>
  386. <DL>
  387. <DD>EXPLICIT_MODE assures that all data has its explicit equivalent in the resulting JSON.
  388. <p>
  389. XStream is normally using attributes in XML that have no real equivalent in JSON.
  390. Additionally it is essential in XML that the individual child elements of a tag keep
  391. order and may have the same tag name. XStream's model relies on both characteristics.
  392. However, properties of a JSON object do not have a defined order, but their names have to
  393. be unique. Only a JSON array defines the order of its elements.
  394. </p>
  395. <p>
  396. Therefore XStream uses in explicit mode a JSON format that supports the original
  397. requirements at the expense of the simplicity of the JSON objects and arrays. Each Java
  398. object will be represented by a JSON object with a single property representing the name
  399. of the object and an array as value that contains two more arrays. The first one contains
  400. a JSON object with all attributes, the second one the value of the Java object which can
  401. be null, a string or integer value or again a new JSON object representing a Java object.
  402. Here an example of an string array with one member, where the array and the string has an
  403. additional attribute 'id':
  404. <pre>
  405. {&quot;string-array&quot;:[[{&quot;id&quot;:&quot;1&quot;}],[{&quot;string&quot;:[[{&quot;id&quot;:&quot;2&quot;}],[&quot;Joe&quot;]]}]]}
  406. </pre>
  407. This format can be used to always deserialize into Java again.
  408. </p>
  409. <p>
  410. This mode cannot be combined with one of the other modes.
  411. </p>
  412. <P>
  413. <DL>
  414. <DT><B>Since:</B></DT>
  415. <DD>1.4</DD>
  416. <DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.thoughtworks.xstream.io.json.AbstractJsonWriter.EXPLICIT_MODE">Constant Field Values</A></DL>
  417. </DL>
  418. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  419. <A NAME="constructor_detail"><!-- --></A>
  420. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  421. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  422. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  423. <B>Constructor Detail</B></FONT></TH>
  424. </TR>
  425. </TABLE>
  426. <A NAME="AbstractJsonWriter()"><!-- --></A><H3>
  427. AbstractJsonWriter</H3>
  428. <PRE>
  429. public <B>AbstractJsonWriter</B>()</PRE>
  430. <DL>
  431. <DD>Construct a JSON writer.
  432. <P>
  433. <DL>
  434. <DT><B>Since:</B></DT>
  435. <DD>1.4</DD>
  436. </DL>
  437. </DL>
  438. <HR>
  439. <A NAME="AbstractJsonWriter(int)"><!-- --></A><H3>
  440. AbstractJsonWriter</H3>
  441. <PRE>
  442. public <B>AbstractJsonWriter</B>(int&nbsp;mode)</PRE>
  443. <DL>
  444. <DD>Construct a JSON writer with a special mode.
  445. <P>
  446. <DL>
  447. <DT><B>Parameters:</B><DD><CODE>mode</CODE> - a bit mask of the mode constants<DT><B>Since:</B></DT>
  448. <DD>1.4</DD>
  449. </DL>
  450. </DL>
  451. <HR>
  452. <A NAME="AbstractJsonWriter(com.thoughtworks.xstream.io.naming.NameCoder)"><!-- --></A><H3>
  453. AbstractJsonWriter</H3>
  454. <PRE>
  455. public <B>AbstractJsonWriter</B>(<A HREF="../../../../../com/thoughtworks/xstream/io/naming/NameCoder.html" title="interface in com.thoughtworks.xstream.io.naming">NameCoder</A>&nbsp;nameCoder)</PRE>
  456. <DL>
  457. <DD>Construct a JSON writer with a special name coder.
  458. <P>
  459. <DL>
  460. <DT><B>Parameters:</B><DD><CODE>nameCoder</CODE> - the name coder to use<DT><B>Since:</B></DT>
  461. <DD>1.4</DD>
  462. </DL>
  463. </DL>
  464. <HR>
  465. <A NAME="AbstractJsonWriter(int, com.thoughtworks.xstream.io.naming.NameCoder)"><!-- --></A><H3>
  466. AbstractJsonWriter</H3>
  467. <PRE>
  468. public <B>AbstractJsonWriter</B>(int&nbsp;mode,
  469. <A HREF="../../../../../com/thoughtworks/xstream/io/naming/NameCoder.html" title="interface in com.thoughtworks.xstream.io.naming">NameCoder</A>&nbsp;nameCoder)</PRE>
  470. <DL>
  471. <DD>Construct a JSON writer with a special mode and name coder.
  472. <P>
  473. <DL>
  474. <DT><B>Parameters:</B><DD><CODE>mode</CODE> - a bit mask of the mode constants<DD><CODE>nameCoder</CODE> - the name coder to use<DT><B>Since:</B></DT>
  475. <DD>1.4</DD>
  476. </DL>
  477. </DL>
  478. <!-- ============ METHOD DETAIL ========== -->
  479. <A NAME="method_detail"><!-- --></A>
  480. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  481. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  482. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  483. <B>Method Detail</B></FONT></TH>
  484. </TR>
  485. </TABLE>
  486. <A NAME="startNode(java.lang.String, java.lang.Class)"><!-- --></A><H3>
  487. startNode</H3>
  488. <PRE>
  489. public void <B>startNode</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;name,
  490. <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A>&nbsp;clazz)</PRE>
  491. <DL>
  492. <DD><B>Description copied from class: <CODE><A HREF="../../../../../com/thoughtworks/xstream/io/AbstractWriter.html#startNode(java.lang.String, java.lang.Class)">AbstractWriter</A></CODE></B></DD>
  493. <DD>
  494. <P>
  495. <DD><DL>
  496. <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../com/thoughtworks/xstream/io/ExtendedHierarchicalStreamWriter.html#startNode(java.lang.String, java.lang.Class)">startNode</A></CODE> in interface <CODE><A HREF="../../../../../com/thoughtworks/xstream/io/ExtendedHierarchicalStreamWriter.html" title="interface in com.thoughtworks.xstream.io">ExtendedHierarchicalStreamWriter</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../com/thoughtworks/xstream/io/AbstractWriter.html#startNode(java.lang.String, java.lang.Class)">startNode</A></CODE> in class <CODE><A HREF="../../../../../com/thoughtworks/xstream/io/AbstractWriter.html" title="class in com.thoughtworks.xstream.io">AbstractWriter</A></CODE></DL>
  497. </DD>
  498. <DD><DL>
  499. </DL>
  500. </DD>
  501. </DL>
  502. <HR>
  503. <A NAME="startNode(java.lang.String)"><!-- --></A><H3>
  504. startNode</H3>
  505. <PRE>
  506. public void <B>startNode</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;name)</PRE>
  507. <DL>
  508. <DD><DL>
  509. </DL>
  510. </DD>
  511. </DL>
  512. <HR>
  513. <A NAME="addAttribute(java.lang.String, java.lang.String)"><!-- --></A><H3>
  514. addAttribute</H3>
  515. <PRE>
  516. public void <B>addAttribute</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;name,
  517. <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;value)</PRE>
  518. <DL>
  519. <DD><DL>
  520. </DL>
  521. </DD>
  522. </DL>
  523. <HR>
  524. <A NAME="setValue(java.lang.String)"><!-- --></A><H3>
  525. setValue</H3>
  526. <PRE>
  527. public void <B>setValue</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;text)</PRE>
  528. <DL>
  529. <DD><B>Description copied from interface: <CODE><A HREF="../../../../../com/thoughtworks/xstream/io/HierarchicalStreamWriter.html#setValue(java.lang.String)">HierarchicalStreamWriter</A></CODE></B></DD>
  530. <DD>Write the value (text content) of the current node.
  531. <P>
  532. <DD><DL>
  533. </DL>
  534. </DD>
  535. </DL>
  536. <HR>
  537. <A NAME="endNode()"><!-- --></A><H3>
  538. endNode</H3>
  539. <PRE>
  540. public void <B>endNode</B>()</PRE>
  541. <DL>
  542. <DD><DL>
  543. </DL>
  544. </DD>
  545. </DL>
  546. <HR>
  547. <A NAME="isArray(java.lang.Class)"><!-- --></A><H3>
  548. isArray</H3>
  549. <PRE>
  550. protected boolean <B>isArray</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A>&nbsp;clazz)</PRE>
  551. <DL>
  552. <DD>Method to declare various Java types to be handles as JSON array.
  553. <P>
  554. <DD><DL>
  555. <DT><B>Parameters:</B><DD><CODE>clazz</CODE> - the type
  556. <DT><B>Returns:</B><DD><code>true</code> if handles as array<DT><B>Since:</B></DT>
  557. <DD>1.4</DD>
  558. </DL>
  559. </DD>
  560. </DL>
  561. <HR>
  562. <A NAME="startObject()"><!-- --></A><H3>
  563. startObject</H3>
  564. <PRE>
  565. protected abstract void <B>startObject</B>()</PRE>
  566. <DL>
  567. <DD>Start a JSON object.
  568. <P>
  569. <DD><DL>
  570. <DT><B>Since:</B></DT>
  571. <DD>1.4</DD>
  572. </DL>
  573. </DD>
  574. </DL>
  575. <HR>
  576. <A NAME="addLabel(java.lang.String)"><!-- --></A><H3>
  577. addLabel</H3>
  578. <PRE>
  579. protected abstract void <B>addLabel</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;name)</PRE>
  580. <DL>
  581. <DD>Add a label to a JSON object.
  582. <P>
  583. <DD><DL>
  584. <DT><B>Parameters:</B><DD><CODE>name</CODE> - the label's name<DT><B>Since:</B></DT>
  585. <DD>1.4</DD>
  586. </DL>
  587. </DD>
  588. </DL>
  589. <HR>
  590. <A NAME="addValue(java.lang.String, com.thoughtworks.xstream.io.json.AbstractJsonWriter.Type)"><!-- --></A><H3>
  591. addValue</H3>
  592. <PRE>
  593. protected abstract void <B>addValue</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;value,
  594. <A HREF="../../../../../com/thoughtworks/xstream/io/json/AbstractJsonWriter.Type.html" title="class in com.thoughtworks.xstream.io.json">AbstractJsonWriter.Type</A>&nbsp;type)</PRE>
  595. <DL>
  596. <DD>Add a value to a JSON object's label or to an array.
  597. <P>
  598. <DD><DL>
  599. <DT><B>Parameters:</B><DD><CODE>value</CODE> - the value itself<DD><CODE>type</CODE> - the JSON type<DT><B>Since:</B></DT>
  600. <DD>1.4</DD>
  601. </DL>
  602. </DD>
  603. </DL>
  604. <HR>
  605. <A NAME="startArray()"><!-- --></A><H3>
  606. startArray</H3>
  607. <PRE>
  608. protected abstract void <B>startArray</B>()</PRE>
  609. <DL>
  610. <DD>Start a JSON array.
  611. <P>
  612. <DD><DL>
  613. <DT><B>Since:</B></DT>
  614. <DD>1.4</DD>
  615. </DL>
  616. </DD>
  617. </DL>
  618. <HR>
  619. <A NAME="nextElement()"><!-- --></A><H3>
  620. nextElement</H3>
  621. <PRE>
  622. protected abstract void <B>nextElement</B>()</PRE>
  623. <DL>
  624. <DD>Prepare a JSON object or array for another element.
  625. <P>
  626. <DD><DL>
  627. <DT><B>Since:</B></DT>
  628. <DD>1.4</DD>
  629. </DL>
  630. </DD>
  631. </DL>
  632. <HR>
  633. <A NAME="endArray()"><!-- --></A><H3>
  634. endArray</H3>
  635. <PRE>
  636. protected abstract void <B>endArray</B>()</PRE>
  637. <DL>
  638. <DD>End the JSON array.
  639. <P>
  640. <DD><DL>
  641. <DT><B>Since:</B></DT>
  642. <DD>1.4</DD>
  643. </DL>
  644. </DD>
  645. </DL>
  646. <HR>
  647. <A NAME="endObject()"><!-- --></A><H3>
  648. endObject</H3>
  649. <PRE>
  650. protected abstract void <B>endObject</B>()</PRE>
  651. <DL>
  652. <DD>End the JSON object.
  653. <P>
  654. <DD><DL>
  655. <DT><B>Since:</B></DT>
  656. <DD>1.4</DD>
  657. </DL>
  658. </DD>
  659. </DL>
  660. <!-- ========= END OF CLASS DATA ========= -->
  661. <HR>
  662. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  663. <A NAME="navbar_bottom"><!-- --></A>
  664. <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
  665. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  666. <TR>
  667. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  668. <A NAME="navbar_bottom_firstrow"><!-- --></A>
  669. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  670. <TR ALIGN="center" VALIGN="top">
  671. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  672. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  673. <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  674. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/AbstractJsonWriter.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  675. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  676. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  677. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  678. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  679. </TR>
  680. </TABLE>
  681. </TD>
  682. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  683. </EM>
  684. </TD>
  685. </TR>
  686. <TR>
  687. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  688. &nbsp;PREV CLASS&nbsp;
  689. &nbsp;<A HREF="../../../../../com/thoughtworks/xstream/io/json/AbstractJsonWriter.Type.html" title="class in com.thoughtworks.xstream.io.json"><B>NEXT CLASS</B></A></FONT></TD>
  690. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  691. <A HREF="../../../../../index.html?com/thoughtworks/xstream/io/json/AbstractJsonWriter.html" target="_top"><B>FRAMES</B></A> &nbsp;
  692. &nbsp;<A HREF="AbstractJsonWriter.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  693. &nbsp;<SCRIPT type="text/javascript">
  694. <!--
  695. if(window==top) {
  696. document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  697. }
  698. //-->
  699. </SCRIPT>
  700. <NOSCRIPT>
  701. <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
  702. </NOSCRIPT>
  703. </FONT></TD>
  704. </TR>
  705. <TR>
  706. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  707. SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  708. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  709. DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  710. </TR>
  711. </TABLE>
  712. <A NAME="skip-navbar_bottom"></A>
  713. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  714. <HR>
  715. Copyright &#169; 2004-2011 <a href="http://xstream.codehaus.org">XStream</a>. All Rights Reserved.
  716. </BODY>
  717. </HTML>