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

http://prototipomemoria.googlecode.com/ · HTML · 905 lines · 792 code · 89 blank · 24 comment · 0 complexity · 5ef04887d9103371bd75d8e3858cb78e 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. PrettyPrintWriter (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="PrettyPrintWriter (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/PrettyPrintWriter.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;<A HREF="../../../../../com/thoughtworks/xstream/io/xml/KXml2Driver.html" title="class in com.thoughtworks.xstream.io.xml"><B>PREV CLASS</B></A>&nbsp;
  52. &nbsp;<A HREF="../../../../../com/thoughtworks/xstream/io/xml/QNameMap.html" title="class in com.thoughtworks.xstream.io.xml"><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/xml/PrettyPrintWriter.html" target="_top"><B>FRAMES</B></A> &nbsp;
  55. &nbsp;<A HREF="PrettyPrintWriter.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;NESTED&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.xml</FONT>
  82. <BR>
  83. Class PrettyPrintWriter</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 "><A HREF="../../../../../com/thoughtworks/xstream/io/xml/AbstractXmlWriter.html" title="class in com.thoughtworks.xstream.io.xml">com.thoughtworks.xstream.io.xml.AbstractXmlWriter</A>
  88. <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>com.thoughtworks.xstream.io.xml.PrettyPrintWriter</B>
  89. </PRE>
  90. <DL>
  91. <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>, <A HREF="../../../../../com/thoughtworks/xstream/io/xml/XmlFriendlyWriter.html" title="interface in com.thoughtworks.xstream.io.xml">XmlFriendlyWriter</A></DD>
  92. </DL>
  93. <DL>
  94. <DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../../com/thoughtworks/xstream/io/xml/CompactWriter.html" title="class in com.thoughtworks.xstream.io.xml">CompactWriter</A></DD>
  95. </DL>
  96. <HR>
  97. <DL>
  98. <DT><PRE>public class <B>PrettyPrintWriter</B><DT>extends <A HREF="../../../../../com/thoughtworks/xstream/io/xml/AbstractXmlWriter.html" title="class in com.thoughtworks.xstream.io.xml">AbstractXmlWriter</A></DL>
  99. </PRE>
  100. <P>
  101. A simple writer that outputs XML in a pretty-printed indented stream.
  102. <p>
  103. By default, the chars <code><pre>
  104. &amp; &lt; &gt; &quot; ' \r
  105. </pre></code> are escaped and replaced with a suitable XML entity. To alter this behavior, override
  106. the the <A HREF="../../../../../com/thoughtworks/xstream/io/xml/PrettyPrintWriter.html#writeText(com.thoughtworks.xstream.core.util.QuickWriter, java.lang.String)"><CODE>writeText(com.thoughtworks.xstream.core.util.QuickWriter, String)</CODE></A> and
  107. <A HREF="../../../../../com/thoughtworks/xstream/io/xml/PrettyPrintWriter.html#writeAttributeValue(com.thoughtworks.xstream.core.util.QuickWriter, java.lang.String)"><CODE>writeAttributeValue(com.thoughtworks.xstream.core.util.QuickWriter, String)</CODE></A> methods.
  108. </p>
  109. <p>
  110. Note: Depending on the XML version some characters cannot be written. Especially a 0
  111. character is never valid in XML, neither directly nor as entity nor within CDATA. However, this writer
  112. works by default in a quirks mode, where it will write any character at least as character entity (even
  113. a null character). You may switch into XML_1_1 mode (which supports most characters) or XML_1_0
  114. that does only support a very limited number of control characters. See XML specification for version
  115. <a href="http://www.w3.org/TR/2006/REC-xml-20060816/#charsets">1.0</a> or
  116. <a href="http://www.w3.org/TR/2006/REC-xml11-20060816/#charsets">1.1</a>. If a character is
  117. not supported, a <A HREF="../../../../../com/thoughtworks/xstream/io/StreamException.html" title="class in com.thoughtworks.xstream.io"><CODE>StreamException</CODE></A> is thrown. Select a proper parser implementation that
  118. respects the version in the XML header (the Xpp3 parser will also read character entities of normally
  119. invalid characters).
  120. </p>
  121. <P>
  122. <P>
  123. <DL>
  124. <DT><B>Author:</B></DT>
  125. <DD>Joe Walnes, J&ouml;rg Schaible</DD>
  126. </DL>
  127. <HR>
  128. <P>
  129. <!-- =========== FIELD SUMMARY =========== -->
  130. <A NAME="field_summary"><!-- --></A>
  131. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  132. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  133. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  134. <B>Field Summary</B></FONT></TH>
  135. </TR>
  136. <TR BGCOLOR="white" CLASS="TableRowColor">
  137. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  138. <CODE>protected &nbsp;int</CODE></FONT></TD>
  139. <TD><CODE><B><A HREF="../../../../../com/thoughtworks/xstream/io/xml/PrettyPrintWriter.html#depth">depth</A></B></CODE>
  140. <BR>
  141. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  142. </TR>
  143. <TR BGCOLOR="white" CLASS="TableRowColor">
  144. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  145. <CODE>static&nbsp;int</CODE></FONT></TD>
  146. <TD><CODE><B><A HREF="../../../../../com/thoughtworks/xstream/io/xml/PrettyPrintWriter.html#XML_1_0">XML_1_0</A></B></CODE>
  147. <BR>
  148. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  149. </TR>
  150. <TR BGCOLOR="white" CLASS="TableRowColor">
  151. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  152. <CODE>static&nbsp;int</CODE></FONT></TD>
  153. <TD><CODE><B><A HREF="../../../../../com/thoughtworks/xstream/io/xml/PrettyPrintWriter.html#XML_1_1">XML_1_1</A></B></CODE>
  154. <BR>
  155. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  156. </TR>
  157. <TR BGCOLOR="white" CLASS="TableRowColor">
  158. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  159. <CODE>static&nbsp;int</CODE></FONT></TD>
  160. <TD><CODE><B><A HREF="../../../../../com/thoughtworks/xstream/io/xml/PrettyPrintWriter.html#XML_QUIRKS">XML_QUIRKS</A></B></CODE>
  161. <BR>
  162. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  163. </TR>
  164. </TABLE>
  165. &nbsp;
  166. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  167. <A NAME="constructor_summary"><!-- --></A>
  168. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  169. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  170. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  171. <B>Constructor Summary</B></FONT></TH>
  172. </TR>
  173. <TR BGCOLOR="white" CLASS="TableRowColor">
  174. <TD><CODE><B><A HREF="../../../../../com/thoughtworks/xstream/io/xml/PrettyPrintWriter.html#PrettyPrintWriter(java.io.Writer)">PrettyPrintWriter</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</A>&nbsp;writer)</CODE>
  175. <BR>
  176. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  177. </TR>
  178. <TR BGCOLOR="white" CLASS="TableRowColor">
  179. <TD><CODE><B><A HREF="../../../../../com/thoughtworks/xstream/io/xml/PrettyPrintWriter.html#PrettyPrintWriter(java.io.Writer, char[])">PrettyPrintWriter</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</A>&nbsp;writer,
  180. char[]&nbsp;lineIndenter)</CODE>
  181. <BR>
  182. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  183. </TR>
  184. <TR BGCOLOR="white" CLASS="TableRowColor">
  185. <TD><CODE><B><A HREF="../../../../../com/thoughtworks/xstream/io/xml/PrettyPrintWriter.html#PrettyPrintWriter(java.io.Writer, char[], java.lang.String)">PrettyPrintWriter</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</A>&nbsp;writer,
  186. char[]&nbsp;lineIndenter,
  187. <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;newLine)</CODE>
  188. <BR>
  189. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>As of 1.3</I></TD>
  190. </TR>
  191. <TR BGCOLOR="white" CLASS="TableRowColor">
  192. <TD><CODE><B><A HREF="../../../../../com/thoughtworks/xstream/io/xml/PrettyPrintWriter.html#PrettyPrintWriter(java.io.Writer, char[], java.lang.String, com.thoughtworks.xstream.io.xml.XmlFriendlyReplacer)">PrettyPrintWriter</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</A>&nbsp;writer,
  193. char[]&nbsp;lineIndenter,
  194. <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;newLine,
  195. <A HREF="../../../../../com/thoughtworks/xstream/io/xml/XmlFriendlyReplacer.html" title="class in com.thoughtworks.xstream.io.xml">XmlFriendlyReplacer</A>&nbsp;replacer)</CODE>
  196. <BR>
  197. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>As of 1.3</I></TD>
  198. </TR>
  199. <TR BGCOLOR="white" CLASS="TableRowColor">
  200. <TD><CODE><B><A HREF="../../../../../com/thoughtworks/xstream/io/xml/PrettyPrintWriter.html#PrettyPrintWriter(java.io.Writer, int)">PrettyPrintWriter</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</A>&nbsp;writer,
  201. int&nbsp;mode)</CODE>
  202. <BR>
  203. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  204. </TR>
  205. <TR BGCOLOR="white" CLASS="TableRowColor">
  206. <TD><CODE><B><A HREF="../../../../../com/thoughtworks/xstream/io/xml/PrettyPrintWriter.html#PrettyPrintWriter(java.io.Writer, int, char[])">PrettyPrintWriter</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</A>&nbsp;writer,
  207. int&nbsp;mode,
  208. char[]&nbsp;lineIndenter)</CODE>
  209. <BR>
  210. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  211. </TR>
  212. <TR BGCOLOR="white" CLASS="TableRowColor">
  213. <TD><CODE><B><A HREF="../../../../../com/thoughtworks/xstream/io/xml/PrettyPrintWriter.html#PrettyPrintWriter(java.io.Writer, int, char[], com.thoughtworks.xstream.io.naming.NameCoder)">PrettyPrintWriter</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</A>&nbsp;writer,
  214. int&nbsp;mode,
  215. char[]&nbsp;lineIndenter,
  216. <A HREF="../../../../../com/thoughtworks/xstream/io/naming/NameCoder.html" title="interface in com.thoughtworks.xstream.io.naming">NameCoder</A>&nbsp;nameCoder)</CODE>
  217. <BR>
  218. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  219. </TR>
  220. <TR BGCOLOR="white" CLASS="TableRowColor">
  221. <TD><CODE><B><A HREF="../../../../../com/thoughtworks/xstream/io/xml/PrettyPrintWriter.html#PrettyPrintWriter(java.io.Writer, int, char[], com.thoughtworks.xstream.io.xml.XmlFriendlyReplacer)">PrettyPrintWriter</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</A>&nbsp;writer,
  222. int&nbsp;mode,
  223. char[]&nbsp;lineIndenter,
  224. <A HREF="../../../../../com/thoughtworks/xstream/io/xml/XmlFriendlyReplacer.html" title="class in com.thoughtworks.xstream.io.xml">XmlFriendlyReplacer</A>&nbsp;replacer)</CODE>
  225. <BR>
  226. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>As of 1.4 use <A HREF="../../../../../com/thoughtworks/xstream/io/xml/PrettyPrintWriter.html#PrettyPrintWriter(java.io.Writer, int, char[], com.thoughtworks.xstream.io.naming.NameCoder)"><CODE>PrettyPrintWriter(Writer, int, char[], NameCoder)</CODE></A> instead</I></TD>
  227. </TR>
  228. <TR BGCOLOR="white" CLASS="TableRowColor">
  229. <TD><CODE><B><A HREF="../../../../../com/thoughtworks/xstream/io/xml/PrettyPrintWriter.html#PrettyPrintWriter(java.io.Writer, int, com.thoughtworks.xstream.io.naming.NameCoder)">PrettyPrintWriter</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</A>&nbsp;writer,
  230. int&nbsp;mode,
  231. <A HREF="../../../../../com/thoughtworks/xstream/io/naming/NameCoder.html" title="interface in com.thoughtworks.xstream.io.naming">NameCoder</A>&nbsp;nameCoder)</CODE>
  232. <BR>
  233. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  234. </TR>
  235. <TR BGCOLOR="white" CLASS="TableRowColor">
  236. <TD><CODE><B><A HREF="../../../../../com/thoughtworks/xstream/io/xml/PrettyPrintWriter.html#PrettyPrintWriter(java.io.Writer, int, java.lang.String)">PrettyPrintWriter</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</A>&nbsp;writer,
  237. int&nbsp;mode,
  238. <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;lineIndenter)</CODE>
  239. <BR>
  240. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  241. </TR>
  242. <TR BGCOLOR="white" CLASS="TableRowColor">
  243. <TD><CODE><B><A HREF="../../../../../com/thoughtworks/xstream/io/xml/PrettyPrintWriter.html#PrettyPrintWriter(java.io.Writer, int, com.thoughtworks.xstream.io.xml.XmlFriendlyReplacer)">PrettyPrintWriter</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</A>&nbsp;writer,
  244. int&nbsp;mode,
  245. <A HREF="../../../../../com/thoughtworks/xstream/io/xml/XmlFriendlyReplacer.html" title="class in com.thoughtworks.xstream.io.xml">XmlFriendlyReplacer</A>&nbsp;replacer)</CODE>
  246. <BR>
  247. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>As of 1.4 use <A HREF="../../../../../com/thoughtworks/xstream/io/xml/PrettyPrintWriter.html#PrettyPrintWriter(java.io.Writer, int, com.thoughtworks.xstream.io.naming.NameCoder)"><CODE>PrettyPrintWriter(Writer, int, NameCoder)</CODE></A> instead</I></TD>
  248. </TR>
  249. <TR BGCOLOR="white" CLASS="TableRowColor">
  250. <TD><CODE><B><A HREF="../../../../../com/thoughtworks/xstream/io/xml/PrettyPrintWriter.html#PrettyPrintWriter(java.io.Writer, com.thoughtworks.xstream.io.naming.NameCoder)">PrettyPrintWriter</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</A>&nbsp;writer,
  251. <A HREF="../../../../../com/thoughtworks/xstream/io/naming/NameCoder.html" title="interface in com.thoughtworks.xstream.io.naming">NameCoder</A>&nbsp;nameCoder)</CODE>
  252. <BR>
  253. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  254. </TR>
  255. <TR BGCOLOR="white" CLASS="TableRowColor">
  256. <TD><CODE><B><A HREF="../../../../../com/thoughtworks/xstream/io/xml/PrettyPrintWriter.html#PrettyPrintWriter(java.io.Writer, java.lang.String)">PrettyPrintWriter</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</A>&nbsp;writer,
  257. <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;lineIndenter)</CODE>
  258. <BR>
  259. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  260. </TR>
  261. <TR BGCOLOR="white" CLASS="TableRowColor">
  262. <TD><CODE><B><A HREF="../../../../../com/thoughtworks/xstream/io/xml/PrettyPrintWriter.html#PrettyPrintWriter(java.io.Writer, java.lang.String, java.lang.String)">PrettyPrintWriter</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</A>&nbsp;writer,
  263. <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;lineIndenter,
  264. <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;newLine)</CODE>
  265. <BR>
  266. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>As of 1.3</I></TD>
  267. </TR>
  268. <TR BGCOLOR="white" CLASS="TableRowColor">
  269. <TD><CODE><B><A HREF="../../../../../com/thoughtworks/xstream/io/xml/PrettyPrintWriter.html#PrettyPrintWriter(java.io.Writer, com.thoughtworks.xstream.io.xml.XmlFriendlyReplacer)">PrettyPrintWriter</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</A>&nbsp;writer,
  270. <A HREF="../../../../../com/thoughtworks/xstream/io/xml/XmlFriendlyReplacer.html" title="class in com.thoughtworks.xstream.io.xml">XmlFriendlyReplacer</A>&nbsp;replacer)</CODE>
  271. <BR>
  272. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>As of 1.4 use <A HREF="../../../../../com/thoughtworks/xstream/io/xml/PrettyPrintWriter.html#PrettyPrintWriter(java.io.Writer, com.thoughtworks.xstream.io.naming.NameCoder)"><CODE>PrettyPrintWriter(Writer, NameCoder)</CODE></A> instead.</I></TD>
  273. </TR>
  274. </TABLE>
  275. &nbsp;
  276. <!-- ========== METHOD SUMMARY =========== -->
  277. <A NAME="method_summary"><!-- --></A>
  278. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  279. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  280. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  281. <B>Method Summary</B></FONT></TH>
  282. </TR>
  283. <TR BGCOLOR="white" CLASS="TableRowColor">
  284. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  285. <CODE>&nbsp;void</CODE></FONT></TD>
  286. <TD><CODE><B><A HREF="../../../../../com/thoughtworks/xstream/io/xml/PrettyPrintWriter.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;key,
  287. <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>
  288. <BR>
  289. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  290. </TR>
  291. <TR BGCOLOR="white" CLASS="TableRowColor">
  292. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  293. <CODE>&nbsp;void</CODE></FONT></TD>
  294. <TD><CODE><B><A HREF="../../../../../com/thoughtworks/xstream/io/xml/PrettyPrintWriter.html#close()">close</A></B>()</CODE>
  295. <BR>
  296. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Close the writer, if necessary.</TD>
  297. </TR>
  298. <TR BGCOLOR="white" CLASS="TableRowColor">
  299. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  300. <CODE>&nbsp;void</CODE></FONT></TD>
  301. <TD><CODE><B><A HREF="../../../../../com/thoughtworks/xstream/io/xml/PrettyPrintWriter.html#endNode()">endNode</A></B>()</CODE>
  302. <BR>
  303. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  304. </TR>
  305. <TR BGCOLOR="white" CLASS="TableRowColor">
  306. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  307. <CODE>protected &nbsp;void</CODE></FONT></TD>
  308. <TD><CODE><B><A HREF="../../../../../com/thoughtworks/xstream/io/xml/PrettyPrintWriter.html#endOfLine()">endOfLine</A></B>()</CODE>
  309. <BR>
  310. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  311. </TR>
  312. <TR BGCOLOR="white" CLASS="TableRowColor">
  313. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  314. <CODE>&nbsp;void</CODE></FONT></TD>
  315. <TD><CODE><B><A HREF="../../../../../com/thoughtworks/xstream/io/xml/PrettyPrintWriter.html#flush()">flush</A></B>()</CODE>
  316. <BR>
  317. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Flush the writer, if necessary.</TD>
  318. </TR>
  319. <TR BGCOLOR="white" CLASS="TableRowColor">
  320. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  321. <CODE>protected &nbsp;<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></CODE></FONT></TD>
  322. <TD><CODE><B><A HREF="../../../../../com/thoughtworks/xstream/io/xml/PrettyPrintWriter.html#getNewLine()">getNewLine</A></B>()</CODE>
  323. <BR>
  324. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  325. </TR>
  326. <TR BGCOLOR="white" CLASS="TableRowColor">
  327. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  328. <CODE>&nbsp;void</CODE></FONT></TD>
  329. <TD><CODE><B><A HREF="../../../../../com/thoughtworks/xstream/io/xml/PrettyPrintWriter.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>
  330. <BR>
  331. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write the value (text content) of the current node.</TD>
  332. </TR>
  333. <TR BGCOLOR="white" CLASS="TableRowColor">
  334. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  335. <CODE>&nbsp;void</CODE></FONT></TD>
  336. <TD><CODE><B><A HREF="../../../../../com/thoughtworks/xstream/io/xml/PrettyPrintWriter.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>
  337. <BR>
  338. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  339. </TR>
  340. <TR BGCOLOR="white" CLASS="TableRowColor">
  341. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  342. <CODE>&nbsp;void</CODE></FONT></TD>
  343. <TD><CODE><B><A HREF="../../../../../com/thoughtworks/xstream/io/xml/PrettyPrintWriter.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,
  344. <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>
  345. <BR>
  346. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  347. </TR>
  348. <TR BGCOLOR="white" CLASS="TableRowColor">
  349. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  350. <CODE>protected &nbsp;void</CODE></FONT></TD>
  351. <TD><CODE><B><A HREF="../../../../../com/thoughtworks/xstream/io/xml/PrettyPrintWriter.html#writeAttributeValue(com.thoughtworks.xstream.core.util.QuickWriter, java.lang.String)">writeAttributeValue</A></B>(com.thoughtworks.xstream.core.util.QuickWriter&nbsp;writer,
  352. <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>
  353. <BR>
  354. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  355. </TR>
  356. <TR BGCOLOR="white" CLASS="TableRowColor">
  357. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  358. <CODE>protected &nbsp;void</CODE></FONT></TD>
  359. <TD><CODE><B><A HREF="../../../../../com/thoughtworks/xstream/io/xml/PrettyPrintWriter.html#writeText(com.thoughtworks.xstream.core.util.QuickWriter, java.lang.String)">writeText</A></B>(com.thoughtworks.xstream.core.util.QuickWriter&nbsp;writer,
  360. <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>
  361. <BR>
  362. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  363. </TR>
  364. </TABLE>
  365. &nbsp;<A NAME="methods_inherited_from_class_com.thoughtworks.xstream.io.xml.AbstractXmlWriter"><!-- --></A>
  366. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  367. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  368. <TH ALIGN="left"><B>Methods inherited from class com.thoughtworks.xstream.io.xml.<A HREF="../../../../../com/thoughtworks/xstream/io/xml/AbstractXmlWriter.html" title="class in com.thoughtworks.xstream.io.xml">AbstractXmlWriter</A></B></TH>
  369. </TR>
  370. <TR BGCOLOR="white" CLASS="TableRowColor">
  371. <TD><CODE><A HREF="../../../../../com/thoughtworks/xstream/io/xml/AbstractXmlWriter.html#escapeXmlName(java.lang.String)">escapeXmlName</A></CODE></TD>
  372. </TR>
  373. </TABLE>
  374. &nbsp;<A NAME="methods_inherited_from_class_com.thoughtworks.xstream.io.AbstractWriter"><!-- --></A>
  375. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  376. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  377. <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>
  378. </TR>
  379. <TR BGCOLOR="white" CLASS="TableRowColor">
  380. <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>
  381. </TR>
  382. </TABLE>
  383. &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
  384. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  385. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  386. <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>
  387. </TR>
  388. <TR BGCOLOR="white" CLASS="TableRowColor">
  389. <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>
  390. </TR>
  391. </TABLE>
  392. &nbsp;
  393. <P>
  394. <!-- ============ FIELD DETAIL =========== -->
  395. <A NAME="field_detail"><!-- --></A>
  396. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  397. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  398. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  399. <B>Field Detail</B></FONT></TH>
  400. </TR>
  401. </TABLE>
  402. <A NAME="XML_QUIRKS"><!-- --></A><H3>
  403. XML_QUIRKS</H3>
  404. <PRE>
  405. public static int <B>XML_QUIRKS</B></PRE>
  406. <DL>
  407. <DL>
  408. </DL>
  409. </DL>
  410. <HR>
  411. <A NAME="XML_1_0"><!-- --></A><H3>
  412. XML_1_0</H3>
  413. <PRE>
  414. public static int <B>XML_1_0</B></PRE>
  415. <DL>
  416. <DL>
  417. </DL>
  418. </DL>
  419. <HR>
  420. <A NAME="XML_1_1"><!-- --></A><H3>
  421. XML_1_1</H3>
  422. <PRE>
  423. public static int <B>XML_1_1</B></PRE>
  424. <DL>
  425. <DL>
  426. </DL>
  427. </DL>
  428. <HR>
  429. <A NAME="depth"><!-- --></A><H3>
  430. depth</H3>
  431. <PRE>
  432. protected int <B>depth</B></PRE>
  433. <DL>
  434. <DL>
  435. </DL>
  436. </DL>
  437. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  438. <A NAME="constructor_detail"><!-- --></A>
  439. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  440. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  441. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  442. <B>Constructor Detail</B></FONT></TH>
  443. </TR>
  444. </TABLE>
  445. <A NAME="PrettyPrintWriter(java.io.Writer, char[], java.lang.String, com.thoughtworks.xstream.io.xml.XmlFriendlyReplacer)"><!-- --></A><H3>
  446. PrettyPrintWriter</H3>
  447. <PRE>
  448. public <B>PrettyPrintWriter</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</A>&nbsp;writer,
  449. char[]&nbsp;lineIndenter,
  450. <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;newLine,
  451. <A HREF="../../../../../com/thoughtworks/xstream/io/xml/XmlFriendlyReplacer.html" title="class in com.thoughtworks.xstream.io.xml">XmlFriendlyReplacer</A>&nbsp;replacer)</PRE>
  452. <DL>
  453. <DD><B>Deprecated.</B>&nbsp;<I>As of 1.3</I>
  454. <P>
  455. <DL>
  456. <DT><B>Since:</B></DT>
  457. <DD>1.2</DD>
  458. </DL>
  459. </DL>
  460. <HR>
  461. <A NAME="PrettyPrintWriter(java.io.Writer, int, char[], com.thoughtworks.xstream.io.naming.NameCoder)"><!-- --></A><H3>
  462. PrettyPrintWriter</H3>
  463. <PRE>
  464. public <B>PrettyPrintWriter</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</A>&nbsp;writer,
  465. int&nbsp;mode,
  466. char[]&nbsp;lineIndenter,
  467. <A HREF="../../../../../com/thoughtworks/xstream/io/naming/NameCoder.html" title="interface in com.thoughtworks.xstream.io.naming">NameCoder</A>&nbsp;nameCoder)</PRE>
  468. <DL>
  469. <DL>
  470. <DT><B>Since:</B></DT>
  471. <DD>1.4</DD>
  472. </DL>
  473. </DL>
  474. <HR>
  475. <A NAME="PrettyPrintWriter(java.io.Writer, int, char[], com.thoughtworks.xstream.io.xml.XmlFriendlyReplacer)"><!-- --></A><H3>
  476. PrettyPrintWriter</H3>
  477. <PRE>
  478. public <B>PrettyPrintWriter</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</A>&nbsp;writer,
  479. int&nbsp;mode,
  480. char[]&nbsp;lineIndenter,
  481. <A HREF="../../../../../com/thoughtworks/xstream/io/xml/XmlFriendlyReplacer.html" title="class in com.thoughtworks.xstream.io.xml">XmlFriendlyReplacer</A>&nbsp;replacer)</PRE>
  482. <DL>
  483. <DD><B>Deprecated.</B>&nbsp;<I>As of 1.4 use <A HREF="../../../../../com/thoughtworks/xstream/io/xml/PrettyPrintWriter.html#PrettyPrintWriter(java.io.Writer, int, char[], com.thoughtworks.xstream.io.naming.NameCoder)"><CODE>PrettyPrintWriter(Writer, int, char[], NameCoder)</CODE></A> instead</I>
  484. <P>
  485. <DL>
  486. <DT><B>Since:</B></DT>
  487. <DD>1.3</DD>
  488. </DL>
  489. </DL>
  490. <HR>
  491. <A NAME="PrettyPrintWriter(java.io.Writer, char[], java.lang.String)"><!-- --></A><H3>
  492. PrettyPrintWriter</H3>
  493. <PRE>
  494. public <B>PrettyPrintWriter</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</A>&nbsp;writer,
  495. char[]&nbsp;lineIndenter,
  496. <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;newLine)</PRE>
  497. <DL>
  498. <DD><B>Deprecated.</B>&nbsp;<I>As of 1.3</I>
  499. <P>
  500. </DL>
  501. <HR>
  502. <A NAME="PrettyPrintWriter(java.io.Writer, int, char[])"><!-- --></A><H3>
  503. PrettyPrintWriter</H3>
  504. <PRE>
  505. public <B>PrettyPrintWriter</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</A>&nbsp;writer,
  506. int&nbsp;mode,
  507. char[]&nbsp;lineIndenter)</PRE>
  508. <DL>
  509. <DL>
  510. <DT><B>Since:</B></DT>
  511. <DD>1.3</DD>
  512. </DL>
  513. </DL>
  514. <HR>
  515. <A NAME="PrettyPrintWriter(java.io.Writer, char[])"><!-- --></A><H3>
  516. PrettyPrintWriter</H3>
  517. <PRE>
  518. public <B>PrettyPrintWriter</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</A>&nbsp;writer,
  519. char[]&nbsp;lineIndenter)</PRE>
  520. <DL>
  521. </DL>
  522. <HR>
  523. <A NAME="PrettyPrintWriter(java.io.Writer, java.lang.String, java.lang.String)"><!-- --></A><H3>
  524. PrettyPrintWriter</H3>
  525. <PRE>
  526. public <B>PrettyPrintWriter</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</A>&nbsp;writer,
  527. <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;lineIndenter,
  528. <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;newLine)</PRE>
  529. <DL>
  530. <DD><B>Deprecated.</B>&nbsp;<I>As of 1.3</I>
  531. <P>
  532. </DL>
  533. <HR>
  534. <A NAME="PrettyPrintWriter(java.io.Writer, int, java.lang.String)"><!-- --></A><H3>
  535. PrettyPrintWriter</H3>
  536. <PRE>
  537. public <B>PrettyPrintWriter</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</A>&nbsp;writer,
  538. int&nbsp;mode,
  539. <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;lineIndenter)</PRE>
  540. <DL>
  541. <DL>
  542. <DT><B>Since:</B></DT>
  543. <DD>1.3</DD>
  544. </DL>
  545. </DL>
  546. <HR>
  547. <A NAME="PrettyPrintWriter(java.io.Writer, java.lang.String)"><!-- --></A><H3>
  548. PrettyPrintWriter</H3>
  549. <PRE>
  550. public <B>PrettyPrintWriter</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</A>&nbsp;writer,
  551. <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;lineIndenter)</PRE>
  552. <DL>
  553. </DL>
  554. <HR>
  555. <A NAME="PrettyPrintWriter(java.io.Writer, int, com.thoughtworks.xstream.io.naming.NameCoder)"><!-- --></A><H3>
  556. PrettyPrintWriter</H3>
  557. <PRE>
  558. public <B>PrettyPrintWriter</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</A>&nbsp;writer,
  559. int&nbsp;mode,
  560. <A HREF="../../../../../com/thoughtworks/xstream/io/naming/NameCoder.html" title="interface in com.thoughtworks.xstream.io.naming">NameCoder</A>&nbsp;nameCoder)</PRE>
  561. <DL>
  562. <DL>
  563. <DT><B>Since:</B></DT>
  564. <DD>1.4</DD>
  565. </DL>
  566. </DL>
  567. <HR>
  568. <A NAME="PrettyPrintWriter(java.io.Writer, int, com.thoughtworks.xstream.io.xml.XmlFriendlyReplacer)"><!-- --></A><H3>
  569. PrettyPrintWriter</H3>
  570. <PRE>
  571. public <B>PrettyPrintWriter</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</A>&nbsp;writer,
  572. int&nbsp;mode,
  573. <A HREF="../../../../../com/thoughtworks/xstream/io/xml/XmlFriendlyReplacer.html" title="class in com.thoughtworks.xstream.io.xml">XmlFriendlyReplacer</A>&nbsp;replacer)</PRE>
  574. <DL>
  575. <DD><B>Deprecated.</B>&nbsp;<I>As of 1.4 use <A HREF="../../../../../com/thoughtworks/xstream/io/xml/PrettyPrintWriter.html#PrettyPrintWriter(java.io.Writer, int, com.thoughtworks.xstream.io.naming.NameCoder)"><CODE>PrettyPrintWriter(Writer, int, NameCoder)</CODE></A> instead</I>
  576. <P>
  577. <DL>
  578. <DT><B>Since:</B></DT>
  579. <DD>1.3</DD>
  580. </DL>
  581. </DL>
  582. <HR>
  583. <A NAME="PrettyPrintWriter(java.io.Writer, com.thoughtworks.xstream.io.naming.NameCoder)"><!-- --></A><H3>
  584. PrettyPrintWriter</H3>
  585. <PRE>
  586. public <B>PrettyPrintWriter</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</A>&nbsp;writer,
  587. <A HREF="../../../../../com/thoughtworks/xstream/io/naming/NameCoder.html" title="interface in com.thoughtworks.xstream.io.naming">NameCoder</A>&nbsp;nameCoder)</PRE>
  588. <DL>
  589. <DL>
  590. <DT><B>Since:</B></DT>
  591. <DD>1.4</DD>
  592. </DL>
  593. </DL>
  594. <HR>
  595. <A NAME="PrettyPrintWriter(java.io.Writer, com.thoughtworks.xstream.io.xml.XmlFriendlyReplacer)"><!-- --></A><H3>
  596. PrettyPrintWriter</H3>
  597. <PRE>
  598. public <B>PrettyPrintWriter</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</A>&nbsp;writer,
  599. <A HREF="../../../../../com/thoughtworks/xstream/io/xml/XmlFriendlyReplacer.html" title="class in com.thoughtworks.xstream.io.xml">XmlFriendlyReplacer</A>&nbsp;replacer)</PRE>
  600. <DL>
  601. <DD><B>Deprecated.</B>&nbsp;<I>As of 1.4 use <A HREF="../../../../../com/thoughtworks/xstream/io/xml/PrettyPrintWriter.html#PrettyPrintWriter(java.io.Writer, com.thoughtworks.xstream.io.naming.NameCoder)"><CODE>PrettyPrintWriter(Writer, NameCoder)</CODE></A> instead.</I>
  602. <P>
  603. </DL>
  604. <HR>
  605. <A NAME="PrettyPrintWriter(java.io.Writer, int)"><!-- --></A><H3>
  606. PrettyPrintWriter</H3>
  607. <PRE>
  608. public <B>PrettyPrintWriter</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</A>&nbsp;writer,
  609. int&nbsp;mode)</PRE>
  610. <DL>
  611. <DL>
  612. <DT><B>Since:</B></DT>
  613. <DD>1.3</DD>
  614. </DL>
  615. </DL>
  616. <HR>
  617. <A NAME="PrettyPrintWriter(java.io.Writer)"><!-- --></A><H3>
  618. PrettyPrintWriter</H3>
  619. <PRE>
  620. public <B>PrettyPrintWriter</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</A>&nbsp;writer)</PRE>
  621. <DL>
  622. </DL>
  623. <!-- ============ METHOD DETAIL ========== -->
  624. <A NAME="method_detail"><!-- --></A>
  625. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  626. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  627. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  628. <B>Method Detail</B></FONT></TH>
  629. </TR>
  630. </TABLE>
  631. <A NAME="startNode(java.lang.String)"><!-- --></A><H3>
  632. startNode</H3>
  633. <PRE>
  634. 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>
  635. <DL>
  636. <DD><DL>
  637. </DL>
  638. </DD>
  639. </DL>
  640. <HR>
  641. <A NAME="startNode(java.lang.String, java.lang.Class)"><!-- --></A><H3>
  642. startNode</H3>
  643. <PRE>
  644. 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,
  645. <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>
  646. <DL>
  647. <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>
  648. <DD>
  649. <P>
  650. <DD><DL>
  651. <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>
  652. </DD>
  653. <DD><DL>
  654. </DL>
  655. </DD>
  656. </DL>
  657. <HR>
  658. <A NAME="setValue(java.lang.String)"><!-- --></A><H3>
  659. setValue</H3>
  660. <PRE>
  661. 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>
  662. <DL>
  663. <DD><B>Description copied from interface: <CODE><A HREF="../../../../../com/thoughtworks/xstream/io/HierarchicalStreamWriter.html#setValue(java.lang.String)">HierarchicalStreamWriter</A></CODE></B></DD>
  664. <DD>Write the value (text content) of the current node.
  665. <P>
  666. <DD><DL>
  667. </DL>
  668. </DD>
  669. </DL>
  670. <HR>
  671. <A NAME="addAttribute(java.lang.String, java.lang.String)"><!-- --></A><H3>
  672. addAttribute</H3>
  673. <PRE>
  674. 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;key,
  675. <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>
  676. <DL>
  677. <DD><DL>
  678. </DL>
  679. </DD>
  680. </DL>
  681. <HR>
  682. <A NAME="writeAttributeValue(com.thoughtworks.xstream.core.util.QuickWriter, java.lang.String)"><!-- --></A><H3>
  683. writeAttributeValue</H3>
  684. <PRE>
  685. protected void <B>writeAttributeValue</B>(com.thoughtworks.xstream.core.util.QuickWriter&nbsp;writer,
  686. <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>
  687. <DL>
  688. <DD><DL>
  689. </DL>
  690. </DD>
  691. </DL>
  692. <HR>
  693. <A NAME="writeText(com.thoughtworks.xstream.core.util.QuickWriter, java.lang.String)"><!-- --></A><H3>
  694. writeText</H3>
  695. <PRE>
  696. protected void <B>writeText</B>(com.thoughtworks.xstream.core.util.QuickWriter&nbsp;writer,
  697. <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>
  698. <DL>
  699. <DD><DL>
  700. </DL>
  701. </DD>
  702. </DL>
  703. <HR>
  704. <A NAME="endNode()"><!-- --></A><H3>
  705. endNode</H3>
  706. <PRE>
  707. public void <B>endNode</B>()</PRE>
  708. <DL>
  709. <DD><DL>
  710. </DL>
  711. </DD>
  712. </DL>
  713. <HR>
  714. <A NAME="endOfLine()"><!-- --></A><H3>
  715. endOfLine</H3>
  716. <PRE>
  717. protected void <B>endOfLine</B>()</PRE>
  718. <DL>
  719. <DD><DL>
  720. </DL>
  721. </DD>
  722. </DL>
  723. <HR>
  724. <A NAME="flush()"><!-- --></A><H3>
  725. flush</H3>
  726. <PRE>
  727. public void <B>flush</B>()</PRE>
  728. <DL>
  729. <DD><B>Description copied from interface: <CODE><A HREF="../../../../../com/thoughtworks/xstream/io/HierarchicalStreamWriter.html#flush()">HierarchicalStreamWriter</A></CODE></B></DD>
  730. <DD>Flush the writer, if necessary.
  731. <P>
  732. <DD><DL>
  733. </DL>
  734. </DD>
  735. </DL>
  736. <HR>
  737. <A NAME="close()"><!-- --></A><H3>
  738. close</H3>
  739. <PRE>
  740. public void <B>close</B>()</PRE>
  741. <DL>
  742. <DD><B>Description copied from interface: <CODE><A HREF="../../../../../com/thoughtworks/xstream/io/HierarchicalStreamWriter.html#close()">HierarchicalStreamWriter</A></CODE></B></DD>
  743. <DD>Close the writer, if necessary.
  744. <P>
  745. <DD><DL>
  746. </DL>
  747. </DD>
  748. </DL>
  749. <HR>
  750. <A NAME="getNewLine()"><!-- --></A><H3>
  751. getNewLine</H3>
  752. <PRE>
  753. protected <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> <B>getNewLine</B>()</PRE>
  754. <DL>
  755. <DD><DL>
  756. </DL>
  757. </DD>
  758. </DL>
  759. <!-- ========= END OF CLASS DATA ========= -->
  760. <HR>
  761. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  762. <A NAME="navbar_bottom"><!-- --></A>
  763. <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
  764. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  765. <TR>
  766. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  767. <A NAME="navbar_bottom_firstrow"><!-- --></A>
  768. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  769. <TR ALIGN="center" VALIGN="top">
  770. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  771. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  772. <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  773. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/PrettyPrintWriter.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  774. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  775. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  776. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  777. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  778. </TR>
  779. </TABLE>
  780. </TD>
  781. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  782. </EM>
  783. </TD>
  784. </TR>
  785. <TR>
  786. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  787. &nbsp;<A HREF="../../../../../com/thoughtworks/xstream/io/xml/KXml2Driver.html" title="class in com.thoughtworks.xstream.io.xml"><B>PREV CLASS</B></A>&nbsp;
  788. &nbsp;<A HREF="../../../../../com/thoughtworks/xstream/io/xml/QNameMap.html" title="class in com.thoughtworks.xstream.io.xml"><B>NEXT CLASS</B></A></FONT></TD>
  789. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  790. <A HREF="../../../../../index.html?com/thoughtworks/xstream/io/xml/PrettyPrintWriter.html" target="_top"><B>FRAMES</B></A> &nbsp;
  791. &nbsp;<A HREF="PrettyPrintWriter.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  792. &nbsp;<SCRIPT type="text/javascript">
  793. <!--
  794. if(window==top) {
  795. document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  796. }
  797. //-->
  798. </SCRIPT>
  799. <NOSCRIPT>
  800. <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
  801. </NOSCRIPT>
  802. </FONT></TD>
  803. </TR>
  804. <TR>
  805. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  806. SUMMARY:&nbsp;NESTED&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>
  807. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  808. 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>
  809. </TR>
  810. </TABLE>
  811. <A NAME="skip-navbar_bottom"></A>
  812. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  813. <HR>
  814. Copyright &#169; 2004-2011 <a href="http://xstream.codehaus.org">XStream</a>. All Rights Reserved.
  815. </BODY>
  816. </HTML>