PageRenderTime 54ms CodeModel.GetById 19ms app.highlight 26ms RepoModel.GetById 1ms app.codeStats 0ms

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