PageRenderTime 56ms CodeModel.GetById 13ms app.highlight 33ms RepoModel.GetById 2ms app.codeStats 0ms

/Prototipo/Servlet/lib/xstream-distribution-1.4.1-bin/xstream-1.4.1/docs/javadoc/com/thoughtworks/xstream/XStream.html

http://prototipomemoria.googlecode.com/
HTML | 911 lines | 803 code | 95 blank | 13 comment | 0 complexity | 73c58232fd9039e9e3516168b4be3ac9 MD5 | raw file

Large files files are truncated, but you can click here to view the full 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:25 CEST 2011 -->
  6<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
  7<TITLE>
  8XStream (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="XStream (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/XStream.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/MarshallingStrategy.html" title="interface in com.thoughtworks.xstream"><B>PREV CLASS</B></A>&nbsp;
 60&nbsp;<A HREF="../../../com/thoughtworks/xstream/XStream.InitializationException.html" title="class in com.thoughtworks.xstream"><B>NEXT CLASS</B></A></FONT></TD>
 61<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 62  <A HREF="../../../index.html?com/thoughtworks/xstream/XStream.html" target="_top"><B>FRAMES</B></A>  &nbsp;
 63&nbsp;<A HREF="XStream.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;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
 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</FONT>
 93<BR>
 94Class XStream</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 "><B>com.thoughtworks.xstream.XStream</B>
 98</PRE>
 99<HR>
100<DL>
101<DT><PRE>public class <B>XStream</B><DT>extends <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></DL>
102</PRE>
103
104<P>
105Simple facade to XStream library, a Java-XML serialization tool. <p/>
106 <p>
107 <hr>
108 <b>Example</b><blockquote>
109
110 <pre>
111 XStream xstream = new XStream();
112 String xml = xstream.toXML(myObject); // serialize to XML
113 Object myObject2 = xstream.fromXML(xml); // deserialize from XML
114 </pre>
115
116 </blockquote>
117 <hr>
118 <p/>
119 <h3>Aliasing classes</h3>
120 <p/>
121 <p>
122 To create shorter XML, you can specify aliases for classes using the <code>alias()</code>
123 method. For example, you can shorten all occurrences of element
124 <code>&lt;com.blah.MyThing&gt;</code> to <code>&lt;my-thing&gt;</code> by registering an
125 alias for the class.
126 <p>
127 <hr>
128 <blockquote>
129
130 <pre>
131 xstream.alias(&quot;my-thing&quot;, MyThing.class);
132 </pre>
133
134 </blockquote>
135 <hr>
136 <p/>
137 <h3>Converters</h3>
138 <p/>
139 <p>
140 XStream contains a map of <A HREF="../../../com/thoughtworks/xstream/converters/Converter.html" title="interface in com.thoughtworks.xstream.converters"><CODE>Converter</CODE></A> instances, each
141 of which acts as a strategy for converting a particular type of class to XML and back again. Out
142 of the box, XStream contains converters for most basic types (String, Date, int, boolean, etc)
143 and collections (Map, List, Set, Properties, etc). For other objects reflection is used to
144 serialize each field recursively.
145 </p>
146 <p/>
147 <p>
148 Extra converters can be registered using the <code>registerConverter()</code> method. Some
149 non-standard converters are supplied in the <A HREF="../../../com/thoughtworks/xstream/converters/extended/package-summary.html"><CODE>com.thoughtworks.xstream.converters.extended</CODE></A>
150 package and you can create your own by implementing the
151 <A HREF="../../../com/thoughtworks/xstream/converters/Converter.html" title="interface in com.thoughtworks.xstream.converters"><CODE>Converter</CODE></A> interface.
152 </p>
153 <p/>
154 <p>
155 <hr>
156 <b>Example</b><blockquote>
157
158 <pre>
159 xstream.registerConverter(new SqlTimestampConverter());
160 xstream.registerConverter(new DynamicProxyConverter());
161 </pre>
162
163 </blockquote>
164 <hr>
165 <p>
166 The converters can be registered with an explicit priority. By default they are registered with 
167 XStream.PRIORITY_NORMAL. Converters of same priority will be used in the reverse sequence
168 they have been registered. The default converter, i.e. the converter which will be used if
169 no other registered converter is suitable, can be registered with priority
170 XStream.PRIORITY_VERY_LOW. XStream uses by default the
171 <A HREF="../../../com/thoughtworks/xstream/converters/reflection/ReflectionConverter.html" title="class in com.thoughtworks.xstream.converters.reflection"><CODE>ReflectionConverter</CODE></A> as the fallback
172 converter.
173 </p>
174 <p/>
175 <p>
176 <hr>
177 <b>Example</b><blockquote>
178
179 <pre>
180 xstream.registerConverter(new CustomDefaultConverter(), XStream.PRIORITY_VERY_LOW);
181 </pre>
182
183 </blockquote>
184 <hr>
185 <p/>
186 <h3>Object graphs</h3>
187 <p/>
188 <p>
189 XStream has support for object graphs; a deserialized object graph will keep references intact,
190 including circular references.
191 </p>
192 <p/>
193 <p>
194 XStream can signify references in XML using either relative/absolute XPath or IDs. The mode can be changed using
195 <code>setMode()</code>:
196 </p>
197 <p/>
198 <table border='1'>
199 <tr>
200 <td><code>xstream.setMode(XStream.XPATH_RELATIVE_REFERENCES);</code></td>
201 <td><i>(Default)</i> Uses XPath relative references to signify duplicate references. This produces XML
202 with the least clutter.</td>
203 </tr>
204 <tr>
205 <td><code>xstream.setMode(XStream.XPATH_ABSOLUTE_REFERENCES);</code></td>
206 <td>Uses XPath absolute references to signify duplicate
207 references. This produces XML with the least clutter.</td>
208 </tr>
209 <tr>
210 <td><code>xstream.setMode(XStream.SINGLE_NODE_XPATH_RELATIVE_REFERENCES);</code></td>
211 <td>Uses XPath relative references to signify duplicate references. The XPath expression ensures that
212 a single node only is selected always.</td>
213 </tr>
214 <tr>
215 <td><code>xstream.setMode(XStream.SINGLE_NODE_XPATH_ABSOLUTE_REFERENCES);</code></td>
216 <td>Uses XPath absolute references to signify duplicate references.  The XPath expression ensures that
217 a single node only is selected always.</td>
218 </tr>
219 <tr>
220 <td><code>xstream.setMode(XStream.ID_REFERENCES);</code></td>
221 <td>Uses ID references to signify duplicate references. In some scenarios, such as when using
222 hand-written XML, this is easier to work with.</td>
223 </tr>
224 <tr>
225 <td><code>xstream.setMode(XStream.NO_REFERENCES);</code></td>
226 <td>This disables object graph support and treats the object structure like a tree. Duplicate
227 references are treated as two separate objects and circular references cause an exception. This
228 is slightly faster and uses less memory than the other two modes.</td>
229 </tr>
230 </table>
231 <h3>Thread safety</h3>
232 <p>
233 The XStream instance is thread-safe. That is, once the XStream instance has been created and
234 configured, it may be shared across multiple threads allowing objects to be
235 serialized/deserialized concurrently. <em>Note, that this only applies if annotations are not 
236 auto-detected on -the-fly.</em>
237 </p>
238 <h3>Implicit collections</h3>
239 <p/>
240 <p>
241 To avoid the need for special tags for collections, you can define implicit collections using one
242 of the <code>addImplicitCollection</code> methods.
243 </p>
244<P>
245
246<P>
247<DL>
248<DT><B>Author:</B></DT>
249  <DD>Joe Walnes, J&ouml;rg Schaible, Mauro Talevi, Guilherme Silveira</DD>
250</DL>
251<HR>
252
253<P>
254<!-- ======== NESTED CLASS SUMMARY ======== -->
255
256<A NAME="nested_class_summary"><!-- --></A>
257<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
258<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
259<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
260<B>Nested Class Summary</B></FONT></TH>
261</TR>
262<TR BGCOLOR="white" CLASS="TableRowColor">
263<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
264<CODE>static&nbsp;class</CODE></FONT></TD>
265<TD><CODE><B><A HREF="../../../com/thoughtworks/xstream/XStream.InitializationException.html" title="class in com.thoughtworks.xstream">XStream.InitializationException</A></B></CODE>
266
267<BR>
268&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>As of 1.3, use <A HREF="../../../com/thoughtworks/xstream/InitializationException.html" title="class in com.thoughtworks.xstream"><CODE>InitializationException</CODE></A> instead</I></TD>
269</TR>
270</TABLE>
271&nbsp;<!-- =========== FIELD SUMMARY =========== -->
272
273<A NAME="field_summary"><!-- --></A>
274<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
275<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
276<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
277<B>Field Summary</B></FONT></TH>
278</TR>
279<TR BGCOLOR="white" CLASS="TableRowColor">
280<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
281<CODE>static&nbsp;int</CODE></FONT></TD>
282<TD><CODE><B><A HREF="../../../com/thoughtworks/xstream/XStream.html#ID_REFERENCES">ID_REFERENCES</A></B></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 ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
289<CODE>static&nbsp;int</CODE></FONT></TD>
290<TD><CODE><B><A HREF="../../../com/thoughtworks/xstream/XStream.html#NO_REFERENCES">NO_REFERENCES</A></B></CODE>
291
292<BR>
293&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
294</TR>
295<TR BGCOLOR="white" CLASS="TableRowColor">
296<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
297<CODE>static&nbsp;int</CODE></FONT></TD>
298<TD><CODE><B><A HREF="../../../com/thoughtworks/xstream/XStream.html#PRIORITY_LOW">PRIORITY_LOW</A></B></CODE>
299
300<BR>
301&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
302</TR>
303<TR BGCOLOR="white" CLASS="TableRowColor">
304<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
305<CODE>static&nbsp;int</CODE></FONT></TD>
306<TD><CODE><B><A HREF="../../../com/thoughtworks/xstream/XStream.html#PRIORITY_NORMAL">PRIORITY_NORMAL</A></B></CODE>
307
308<BR>
309&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
310</TR>
311<TR BGCOLOR="white" CLASS="TableRowColor">
312<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
313<CODE>static&nbsp;int</CODE></FONT></TD>
314<TD><CODE><B><A HREF="../../../com/thoughtworks/xstream/XStream.html#PRIORITY_VERY_HIGH">PRIORITY_VERY_HIGH</A></B></CODE>
315
316<BR>
317&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
318</TR>
319<TR BGCOLOR="white" CLASS="TableRowColor">
320<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
321<CODE>static&nbsp;int</CODE></FONT></TD>
322<TD><CODE><B><A HREF="../../../com/thoughtworks/xstream/XStream.html#PRIORITY_VERY_LOW">PRIORITY_VERY_LOW</A></B></CODE>
323
324<BR>
325&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
326</TR>
327<TR BGCOLOR="white" CLASS="TableRowColor">
328<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
329<CODE>static&nbsp;int</CODE></FONT></TD>
330<TD><CODE><B><A HREF="../../../com/thoughtworks/xstream/XStream.html#SINGLE_NODE_XPATH_ABSOLUTE_REFERENCES">SINGLE_NODE_XPATH_ABSOLUTE_REFERENCES</A></B></CODE>
331
332<BR>
333&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
334</TR>
335<TR BGCOLOR="white" CLASS="TableRowColor">
336<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
337<CODE>static&nbsp;int</CODE></FONT></TD>
338<TD><CODE><B><A HREF="../../../com/thoughtworks/xstream/XStream.html#SINGLE_NODE_XPATH_RELATIVE_REFERENCES">SINGLE_NODE_XPATH_RELATIVE_REFERENCES</A></B></CODE>
339
340<BR>
341&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
342</TR>
343<TR BGCOLOR="white" CLASS="TableRowColor">
344<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
345<CODE>static&nbsp;int</CODE></FONT></TD>
346<TD><CODE><B><A HREF="../../../com/thoughtworks/xstream/XStream.html#XPATH_ABSOLUTE_REFERENCES">XPATH_ABSOLUTE_REFERENCES</A></B></CODE>
347
348<BR>
349&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
350</TR>
351<TR BGCOLOR="white" CLASS="TableRowColor">
352<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
353<CODE>static&nbsp;int</CODE></FONT></TD>
354<TD><CODE><B><A HREF="../../../com/thoughtworks/xstream/XStream.html#XPATH_RELATIVE_REFERENCES">XPATH_RELATIVE_REFERENCES</A></B></CODE>
355
356<BR>
357&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
358</TR>
359</TABLE>
360&nbsp;
361<!-- ======== CONSTRUCTOR SUMMARY ======== -->
362
363<A NAME="constructor_summary"><!-- --></A>
364<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
365<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
366<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
367<B>Constructor Summary</B></FONT></TH>
368</TR>
369<TR BGCOLOR="white" CLASS="TableRowColor">
370<TD><CODE><B><A HREF="../../../com/thoughtworks/xstream/XStream.html#XStream()">XStream</A></B>()</CODE>
371
372<BR>
373&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a default XStream.</TD>
374</TR>
375<TR BGCOLOR="white" CLASS="TableRowColor">
376<TD><CODE><B><A HREF="../../../com/thoughtworks/xstream/XStream.html#XStream(com.thoughtworks.xstream.io.HierarchicalStreamDriver)">XStream</A></B>(<A HREF="../../../com/thoughtworks/xstream/io/HierarchicalStreamDriver.html" title="interface in com.thoughtworks.xstream.io">HierarchicalStreamDriver</A>&nbsp;hierarchicalStreamDriver)</CODE>
377
378<BR>
379&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs an XStream with a special <A HREF="../../../com/thoughtworks/xstream/io/HierarchicalStreamDriver.html" title="interface in com.thoughtworks.xstream.io"><CODE>HierarchicalStreamDriver</CODE></A>.</TD>
380</TR>
381<TR BGCOLOR="white" CLASS="TableRowColor">
382<TD><CODE><B><A HREF="../../../com/thoughtworks/xstream/XStream.html#XStream(com.thoughtworks.xstream.converters.reflection.ReflectionProvider)">XStream</A></B>(<A HREF="../../../com/thoughtworks/xstream/converters/reflection/ReflectionProvider.html" title="interface in com.thoughtworks.xstream.converters.reflection">ReflectionProvider</A>&nbsp;reflectionProvider)</CODE>
383
384<BR>
385&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs an XStream with a special <A HREF="../../../com/thoughtworks/xstream/converters/reflection/ReflectionProvider.html" title="interface in com.thoughtworks.xstream.converters.reflection"><CODE>ReflectionProvider</CODE></A>.</TD>
386</TR>
387<TR BGCOLOR="white" CLASS="TableRowColor">
388<TD><CODE><B><A HREF="../../../com/thoughtworks/xstream/XStream.html#XStream(com.thoughtworks.xstream.converters.reflection.ReflectionProvider, com.thoughtworks.xstream.io.HierarchicalStreamDriver)">XStream</A></B>(<A HREF="../../../com/thoughtworks/xstream/converters/reflection/ReflectionProvider.html" title="interface in com.thoughtworks.xstream.converters.reflection">ReflectionProvider</A>&nbsp;reflectionProvider,
389        <A HREF="../../../com/thoughtworks/xstream/io/HierarchicalStreamDriver.html" title="interface in com.thoughtworks.xstream.io">HierarchicalStreamDriver</A>&nbsp;hierarchicalStreamDriver)</CODE>
390
391<BR>
392&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs an XStream with a special <A HREF="../../../com/thoughtworks/xstream/io/HierarchicalStreamDriver.html" title="interface in com.thoughtworks.xstream.io"><CODE>HierarchicalStreamDriver</CODE></A> and
393 <A HREF="../../../com/thoughtworks/xstream/converters/reflection/ReflectionProvider.html" title="interface in com.thoughtworks.xstream.converters.reflection"><CODE>ReflectionProvider</CODE></A>.</TD>
394</TR>
395<TR BGCOLOR="white" CLASS="TableRowColor">
396<TD><CODE><B><A HREF="../../../com/thoughtworks/xstream/XStream.html#XStream(com.thoughtworks.xstream.converters.reflection.ReflectionProvider, com.thoughtworks.xstream.io.HierarchicalStreamDriver, java.lang.ClassLoader)">XStream</A></B>(<A HREF="../../../com/thoughtworks/xstream/converters/reflection/ReflectionProvider.html" title="interface in com.thoughtworks.xstream.converters.reflection">ReflectionProvider</A>&nbsp;reflectionProvider,
397        <A HREF="../../../com/thoughtworks/xstream/io/HierarchicalStreamDriver.html" title="interface in com.thoughtworks.xstream.io">HierarchicalStreamDriver</A>&nbsp;driver,
398        <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</A>&nbsp;classLoader)</CODE>
399
400<BR>
401&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs an XStream with a special <A HREF="../../../com/thoughtworks/xstream/io/HierarchicalStreamDriver.html" title="interface in com.thoughtworks.xstream.io"><CODE>HierarchicalStreamDriver</CODE></A> and
402 <A HREF="../../../com/thoughtworks/xstream/converters/reflection/ReflectionProvider.html" title="interface in com.thoughtworks.xstream.converters.reflection"><CODE>ReflectionProvider</CODE></A> and additionally with a prepared <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang"><CODE>ClassLoader</CODE></A> to use.</TD>
403</TR>
404<TR BGCOLOR="white" CLASS="TableRowColor">
405<TD><CODE><B><A HREF="../../../com/thoughtworks/xstream/XStream.html#XStream(com.thoughtworks.xstream.converters.reflection.ReflectionProvider, com.thoughtworks.xstream.io.HierarchicalStreamDriver, java.lang.ClassLoader, com.thoughtworks.xstream.mapper.Mapper)">XStream</A></B>(<A HREF="../../../com/thoughtworks/xstream/converters/reflection/ReflectionProvider.html" title="interface in com.thoughtworks.xstream.converters.reflection">ReflectionProvider</A>&nbsp;reflectionProvider,
406        <A HREF="../../../com/thoughtworks/xstream/io/HierarchicalStreamDriver.html" title="interface in com.thoughtworks.xstream.io">HierarchicalStreamDriver</A>&nbsp;driver,
407        <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</A>&nbsp;classLoader,
408        <A HREF="../../../com/thoughtworks/xstream/mapper/Mapper.html" title="interface in com.thoughtworks.xstream.mapper">Mapper</A>&nbsp;mapper)</CODE>
409
410<BR>
411&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs an XStream with a special <A HREF="../../../com/thoughtworks/xstream/io/HierarchicalStreamDriver.html" title="interface in com.thoughtworks.xstream.io"><CODE>HierarchicalStreamDriver</CODE></A> and
412 <A HREF="../../../com/thoughtworks/xstream/converters/reflection/ReflectionProvider.html" title="interface in com.thoughtworks.xstream.converters.reflection"><CODE>ReflectionProvider</CODE></A> and additionally with a prepared <A HREF="../../../com/thoughtworks/xstream/mapper/Mapper.html" title="interface in com.thoughtworks.xstream.mapper"><CODE>Mapper</CODE></A> and the
413 <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang"><CODE>ClassLoader</CODE></A> in use.</TD>
414</TR>
415<TR BGCOLOR="white" CLASS="TableRowColor">
416<TD><CODE><B><A HREF="../../../com/thoughtworks/xstream/XStream.html#XStream(com.thoughtworks.xstream.converters.reflection.ReflectionProvider, com.thoughtworks.xstream.io.HierarchicalStreamDriver, java.lang.ClassLoader, com.thoughtworks.xstream.mapper.Mapper, com.thoughtworks.xstream.converters.ConverterLookup, com.thoughtworks.xstream.converters.ConverterRegistry)">XStream</A></B>(<A HREF="../../../com/thoughtworks/xstream/converters/reflection/ReflectionProvider.html" title="interface in com.thoughtworks.xstream.converters.reflection">ReflectionProvider</A>&nbsp;reflectionProvider,
417        <A HREF="../../../com/thoughtworks/xstream/io/HierarchicalStreamDriver.html" title="interface in com.thoughtworks.xstream.io">HierarchicalStreamDriver</A>&nbsp;driver,
418        <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</A>&nbsp;classLoader,
419        <A HREF="../../../com/thoughtworks/xstream/mapper/Mapper.html" title="interface in com.thoughtworks.xstream.mapper">Mapper</A>&nbsp;mapper,
420        <A HREF="../../../com/thoughtworks/xstream/converters/ConverterLookup.html" title="interface in com.thoughtworks.xstream.converters">ConverterLookup</A>&nbsp;converterLookup,
421        <A HREF="../../../com/thoughtworks/xstream/converters/ConverterRegistry.html" title="interface in com.thoughtworks.xstream.converters">ConverterRegistry</A>&nbsp;converterRegistry)</CODE>
422
423<BR>
424&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs an XStream with a special <A HREF="../../../com/thoughtworks/xstream/io/HierarchicalStreamDriver.html" title="interface in com.thoughtworks.xstream.io"><CODE>HierarchicalStreamDriver</CODE></A>,
425 <A HREF="../../../com/thoughtworks/xstream/converters/reflection/ReflectionProvider.html" title="interface in com.thoughtworks.xstream.converters.reflection"><CODE>ReflectionProvider</CODE></A>, a prepared <A HREF="../../../com/thoughtworks/xstream/mapper/Mapper.html" title="interface in com.thoughtworks.xstream.mapper"><CODE>Mapper</CODE></A> and the <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang"><CODE>ClassLoader</CODE></A> in use
426 and an own <A HREF="../../../com/thoughtworks/xstream/converters/ConverterRegistry.html" title="interface in com.thoughtworks.xstream.converters"><CODE>ConverterRegistry</CODE></A>.</TD>
427</TR>
428<TR BGCOLOR="white" CLASS="TableRowColor">
429<TD><CODE><B><A HREF="../../../com/thoughtworks/xstream/XStream.html#XStream(com.thoughtworks.xstream.converters.reflection.ReflectionProvider, com.thoughtworks.xstream.mapper.Mapper, com.thoughtworks.xstream.io.HierarchicalStreamDriver)">XStream</A></B>(<A HREF="../../../com/thoughtworks/xstream/converters/reflection/ReflectionProvider.html" title="interface in com.thoughtworks.xstream.converters.reflection">ReflectionProvider</A>&nbsp;reflectionProvider,
430        <A HREF="../../../com/thoughtworks/xstream/mapper/Mapper.html" title="interface in com.thoughtworks.xstream.mapper">Mapper</A>&nbsp;mapper,
431        <A HREF="../../../com/thoughtworks/xstream/io/HierarchicalStreamDriver.html" title="interface in com.thoughtworks.xstream.io">HierarchicalStreamDriver</A>&nbsp;driver)</CODE>
432
433<BR>
434&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>As of 1.3, use
435             <A HREF="../../../com/thoughtworks/xstream/XStream.html#XStream(com.thoughtworks.xstream.converters.reflection.ReflectionProvider, com.thoughtworks.xstream.io.HierarchicalStreamDriver, java.lang.ClassLoader, com.thoughtworks.xstream.mapper.Mapper)"><CODE>XStream(ReflectionProvider, HierarchicalStreamDriver, ClassLoader, Mapper)</CODE></A>
436             instead</I></TD>
437</TR>
438</TABLE>
439&nbsp;
440<!-- ========== METHOD SUMMARY =========== -->
441
442<A NAME="method_summary"><!-- --></A>
443<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
444<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
445<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
446<B>Method Summary</B></FONT></TH>
447</TR>
448<TR BGCOLOR="white" CLASS="TableRowColor">
449<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
450<CODE>&nbsp;void</CODE></FONT></TD>
451<TD><CODE><B><A HREF="../../../com/thoughtworks/xstream/XStream.html#addDefaultImplementation(java.lang.Class, java.lang.Class)">addDefaultImplementation</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A>&nbsp;defaultImplementation,
452                         <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;ofType)</CODE>
453
454<BR>
455&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Associate a default implementation of a class with an object.</TD>
456</TR>
457<TR BGCOLOR="white" CLASS="TableRowColor">
458<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
459<CODE>&nbsp;void</CODE></FONT></TD>
460<TD><CODE><B><A HREF="../../../com/thoughtworks/xstream/XStream.html#addImmutableType(java.lang.Class)">addImmutableType</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A>&nbsp;type)</CODE>
461
462<BR>
463&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Add immutable types.</TD>
464</TR>
465<TR BGCOLOR="white" CLASS="TableRowColor">
466<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
467<CODE>&nbsp;void</CODE></FONT></TD>
468<TD><CODE><B><A HREF="../../../com/thoughtworks/xstream/XStream.html#addImplicitArray(java.lang.Class, java.lang.String)">addImplicitArray</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A>&nbsp;ownerType,
469                 <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;fieldName)</CODE>
470
471<BR>
472&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds an implicit array.</TD>
473</TR>
474<TR BGCOLOR="white" CLASS="TableRowColor">
475<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
476<CODE>&nbsp;void</CODE></FONT></TD>
477<TD><CODE><B><A HREF="../../../com/thoughtworks/xstream/XStream.html#addImplicitArray(java.lang.Class, java.lang.String, java.lang.Class)">addImplicitArray</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A>&nbsp;ownerType,
478                 <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;fieldName,
479                 <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;itemType)</CODE>
480
481<BR>
482&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds an implicit array which is used for all items of the given itemType when the array
483 type matches.</TD>
484</TR>
485<TR BGCOLOR="white" CLASS="TableRowColor">
486<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
487<CODE>&nbsp;void</CODE></FONT></TD>
488<TD><CODE><B><A HREF="../../../com/thoughtworks/xstream/XStream.html#addImplicitArray(java.lang.Class, java.lang.String, java.lang.String)">addImplicitArray</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A>&nbsp;ownerType,
489                 <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;fieldName,
490                 <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;itemName)</CODE>
491
492<BR>
493&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds an implicit array which is used for all items of the given element name defined by
494 itemName.</TD>
495</TR>
496<TR BGCOLOR="white" CLASS="TableRowColor">
497<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
498<CODE>&nbsp;void</CODE></FONT></TD>
499<TD><CODE><B><A HREF="../../../com/thoughtworks/xstream/XStream.html#addImplicitCollection(java.lang.Class, java.lang.String)">addImplicitCollection</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A>&nbsp;ownerType,
500                      <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;fieldName)</CODE>
501
502<BR>
503&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds a default implicit collection which is used for any unmapped XML tag.</TD>
504</TR>
505<TR BGCOLOR="white" CLASS="TableRowColor">
506<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
507<CODE>&nbsp;void</CODE></FONT></TD>
508<TD><CODE><B><A HREF="../../../com/thoughtworks/xstream/XStream.html#addImplicitCollection(java.lang.Class, java.lang.String, java.lang.Class)">addImplicitCollection</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A>&nbsp;ownerType,
509                      <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;fieldName,
510                      <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;itemType)</CODE>
511
512<BR>
513&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds implicit collection which is used for all items of the given itemType.</TD>
514</TR>
515<TR BGCOLOR="white" CLASS="TableRowColor">
516<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
517<CODE>&nbsp;void</CODE></FONT></TD>
518<TD><CODE><B><A HREF="../../../com/thoughtworks/xstream/XStream.html#addImplicitCollection(java.lang.Class, java.lang.String, java.lang.String, java.lang.Class)">addImplicitCollection</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A>&nbsp;ownerType,
519                      <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;fieldName,
520                      <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;itemFieldName,
521                      <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;itemType)</CODE>
522
523<BR>
524&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds implicit collection which is used for all items of the given element name defined by
525 itemFieldName.</TD>
526</TR>
527<TR BGCOLOR="white" CLASS="TableRowColor">
528<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
529<CODE>&nbsp;void</CODE></FONT></TD>
530<TD><CODE><B><A HREF="../../../com/thoughtworks/xstream/XStream.html#addImplicitMap(java.lang.Class, java.lang.String, java.lang.Class, java.lang.String)">addImplicitMap</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A>&nbsp;ownerType,
531               <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;fieldName,
532               <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;itemType,
533               <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;keyFieldName)</CODE>
534
535<BR>
536&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds an implicit map.</TD>
537</TR>
538<TR BGCOLOR="white" CLASS="TableRowColor">
539<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
540<CODE>&nbsp;void</CODE></FONT></TD>
541<TD><CODE><B><A HREF="../../../com/thoughtworks/xstream/XStream.html#addImplicitMap(java.lang.Class, java.lang.String, java.lang.String, java.lang.Class, java.lang.String)">addImplicitMap</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A>&nbsp;ownerType,
542               <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;fieldName,
543               <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;itemFieldName,
544               <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;itemType,
545               <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;keyFieldName)</CODE>
546
547<BR>
548&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds an implicit map.</TD>
549</TR>
550<TR BGCOLOR="white" CLASS="TableRowColor">
551<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
552<CODE>&nbsp;void</CODE></FONT></TD>
553<TD><CODE><B><A HREF="../../../com/thoughtworks/xstream/XStream.html#alias(java.lang.String, java.lang.Class)">alias</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,
554      <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;type)</CODE>
555
556<BR>
557&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Alias a Class to a shorter name to be used in XML elements.</TD>
558</TR>
559<TR BGCOLOR="white" CLASS="TableRowColor">
560<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
561<CODE>&nbsp;void</CODE></FONT></TD>
562<TD><CODE><B><A HREF="../../../com/thoughtworks/xstream/XStream.html#alias(java.lang.String, java.lang.Class, java.lang.Class)">alias</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,
563      <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;type,
564      <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;defaultImplementation)</CODE>
565
566<BR>
567&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Alias a Class to a shorter name to be used in XML elements.</TD>
568</TR>
569<TR BGCOLOR="white" CLASS="TableRowColor">
570<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
571<CODE>&nbsp;void</CODE></FONT></TD>
572<TD><CODE><B><A HREF="../../../com/thoughtworks/xstream/XStream.html#aliasAttribute(java.lang.Class, java.lang.String, java.lang.String)">aliasAttribute</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A>&nbsp;definedIn,
573               <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;attributeName,
574               <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;alias)</CODE>
575
576<BR>
577&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create an alias for an attribute.</TD>
578</TR>
579<TR BGCOLOR="white" CLASS="TableRowColor">
580<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
581<CODE>&nbsp;void</CODE></FONT></TD>
582<TD><CODE><B><A HREF="../../../com/thoughtworks/xstream/XStream.html#aliasAttribute(java.lang.String, java.lang.String)">aliasAttribute</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;alias,
583               <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;attributeName)</CODE>
584
585<BR>
586&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create an alias for an attribute</TD>
587</TR>
588<TR BGCOLOR="white" CLASS="TableRowColor">
589<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
590<CODE>&nbsp;void</CODE></FONT></TD>
591<TD><CODE><B><A HREF="../../../com/thoughtworks/xstream/XStream.html#aliasField(java.lang.String, java.lang.Class, java.lang.String)">aliasField</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;alias,
592           <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;definedIn,
593           <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;fieldName)</CODE>
594
595<BR>
596&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create an alias for a field name.</TD>
597</TR>
598<TR BGCOLOR="white" CLASS="TableRowColor">
599<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
600<CODE>&nbsp;void</CODE></FONT></TD>
601<TD><CODE><B><A HREF="../../../com/thoughtworks/xstream/XStream.html#aliasPackage(java.lang.String, java.lang.String)">aliasPackage</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,
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;pkgName)</CODE>
603
604<BR>
605&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Alias a package to a shorter name to be used in XML elements.</TD>
606</TR>
607<TR BGCOLOR="white" CLASS="TableRowColor">
608<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
609<CODE>&nbsp;void</CODE></FONT></TD>
610<TD><CODE><B><A HREF="../../../com/thoughtworks/xstream/XStream.html#aliasSystemAttribute(java.lang.String, java.lang.String)">aliasSystemAttribute</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;alias,
611                     <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;systemAttributeName)</CODE>
612
613<BR>
614&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create an alias for a system attribute.</TD>
615</TR>
616<TR BGCOLOR="white" CLASS="TableRowColor">
617<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
618<CODE>&nbsp;void</CODE></FONT></TD>
619<TD><CODE><B><A HREF="../../../com/thoughtworks/xstream/XStream.html#aliasType(java.lang.String, java.lang.Class)">aliasType</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,
620          <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;type)</CODE>
621
622<BR>
623&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Alias a type to a shorter name to be used in XML elements.</TD>
624</TR>
625<TR BGCOLOR="white" CLASS="TableRowColor">
626<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
627<CODE>&nbsp;void</CODE></FONT></TD>
628<TD><CODE><B><A HREF="../../../com/thoughtworks/xstream/XStream.html#autodetectAnnotations(boolean)">autodetectAnnotations</A></B>(boolean&nbsp;mode)</CODE>
629
630<BR>
631&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the auto-detection mode of the AnnotationMapper.</TD>
632</TR>
633<TR BGCOLOR="white" CLASS="TableRowColor">
634<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
635<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/ObjectInputStream.html?is-external=true" title="class or interface in java.io">ObjectInputStream</A></CODE></FONT></TD>
636<TD><CODE><B><A HREF="../../../com/thoughtworks/xstream/XStream.html#createObjectInputStream(com.thoughtworks.xstream.io.HierarchicalStreamReader)">createObjectInputStream</A></B>(<A HREF="../../../com/thoughtworks/xstream/io/HierarchicalStreamReader.html" title="interface in com.thoughtworks.xstream.io">HierarchicalStreamReader</A>&nbsp;reader)</CODE>
637
638<BR>
639&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates an ObjectInputStream that deserializes a stream of objects from a reader using
640 XStream.</TD>
641</TR>
642<TR BGCOLOR="white" CLASS="TableRowColor">
643<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
644<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/ObjectInputStream.html?is-external=true" title="class or interface in java.io">ObjectInputStream</A></CODE></FONT></TD>
645<TD><CODE><B><A HREF="../../../com/thoughtworks/xstream/XStream.html#createObjectInputStream(java.io.InputStream)">createObjectInputStream</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</A>&nbsp;in)</CODE>
646
647<BR>
648&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates an ObjectInputStream that deserializes a stream of objects from an InputStream
649 using XStream.</TD>
650</TR>
651<TR BGCOLOR="white" CLASS="TableRowColor">
652<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
653<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/ObjectInputStream.html?is-external=true" title="class or interface in java.io">ObjectInputStream</A></CODE></FONT></TD>
654<TD><CODE><B><A HREF="../../../com/thoughtworks/xstream/XStream.html#createObjectInputStream(java.io.Reader)">createObjectInputStream</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/Reader.html?is-external=true" title="class or interface in java.io">Reader</A>&nbsp;xmlReader)</CODE>
655
656<BR>
657&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates an ObjectInputStream that deserializes a stream of objects from a reader using
658 XStream.</TD>
659</TR>
660<TR BGCOLOR="white" CLASS="TableRowColor">
661<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
662<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/ObjectOutputStream.html?is-external=true" title="class or interface in java.io">ObjectOutputStream</A></CODE></FONT></TD>
663<TD><CODE><B><A HREF="../../../com/thoughtworks/xstream/XStream.html#createObjectOutputStream(com.thoughtworks.xstream.io.HierarchicalStreamWriter)">createObjectOutputStream</A></B>(<A HREF="../../../com/thoughtworks/xstream/io/HierarchicalStreamWriter.html" title="interface in com.thoughtworks.xstream.io">HierarchicalStreamWriter</A>&nbsp;writer)</CODE>
664
665<BR>
666&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates an ObjectOutputStream that serializes a stream of objects to the writer using
667 XStream.</TD>
668</TR>
669<TR BGCOLOR="white" CLASS="TableRowColor">
670<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
671<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/ObjectOutputStream.html?is-external=true" title="class or interface in java.io">ObjectOutputStream</A></CODE></FONT></TD>
672<TD><CODE><B><A HREF="../../../com/thoughtworks/xstream/XStream.html#createObjectOutputStream(com.thoughtworks.xstream.io.HierarchicalStreamWriter, java.lang.String)">createObjectOutputStream</A></B>(<A HREF="../../../com/thoughtworks/xstream/io/HierarchicalStreamWriter.html" title="interface in com.thoughtworks.xstream.io">HierarchicalStreamWriter</A>&nbsp;writer,
673                         <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;rootNodeName)</CODE>
674
675<BR>
676&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates an ObjectOutputStream that serializes a stream of objects to the writer using
677 XStream.</TD>
678</TR>
679<TR BGCOLOR="white" CLASS="TableRowColor">
680<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
681<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/ObjectOutputStream.html?is-external=true" title="class or interface in java.io">ObjectOutputStream</A></CODE></FONT></TD>
682<TD><CODE><B><A HREF="../../../com/thoughtworks/xstream/XStream.html#createObjectOutputStream(java.io.OutputStream)">createObjectOutputStream</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A>&nbsp;out)</CODE>
683
684<BR>
685&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates an ObjectOutputStream that serializes a stream of objects to the OutputStream
686 using XStream.</TD>
687</TR>
688<TR BGCOLOR="white" CLASS="TableRowColor">
689<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
690<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/ObjectOutputStream.html?is-external=true" title="class or interface in java.io">ObjectOutputStream</A></CODE></FONT></TD>
691<TD><CODE><B><A HREF="../../../com/thoughtworks/xstream/XStream.html#createObjectOutputStream(java.io.OutputStream, java.lang.String)">createObjectOutputStream</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A>&nbsp;out,
692                         <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;rootNodeName)</CODE>
693
694<BR>
695&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates an ObjectOutputStream that serializes a stream of objects to the OutputStream
696 using XStream.</TD>
697</TR>
698<TR BGCOLOR="white" CLASS="TableRowColor">
699<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
700<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/ObjectOutputStream.html?is-external=true" title="class or interface in java.io">ObjectOutputStream</A></CODE></FONT></TD>
701<TD><CODE><B><A HREF="../../../com/thoughtworks/xstream/XStream.html#createObjectOutputStream(java.io.Writer)">createObjectOutputStream</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>
702
703<BR>
704&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates an ObjectOutputStream that serializes a stream of objects to the writer using
705 XStream.</TD>
706</TR>
707<TR BGCOLOR="white" CLASS="TableRowColor">
708<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
709<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/ObjectOutputStream.html?is-external=true" title="class or interface in java.io">ObjectOutputStream</A></CODE></FONT></TD>
710<TD><CODE><B><A HREF="../../../com/thoughtworks/xstream/XStream.html#createObjectOutputStream(java.io.Writer, java.lang.String)">createObjectOutputStream</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,
711                         <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;rootNodeName)</CODE>
712
713<BR>
714&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates an ObjectOutputStream that serializes a stream of objects to the writer using
715 XStream.</TD>
716</TR>
717<TR BGCOLOR="white" CLASS="TableRowColor">
718<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
719<CODE>&nbsp;<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></CODE></FONT></TD>
720<TD><CODE><B><A HREF="../../../com/thoughtworks/xstream/XStream.html#fromXML(java.io.File)">fromXML</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true" ti

Large files files are truncated, but you can click here to view the full file