code>java.lang.Exception</code> - if something goes wrong while writing to the file</dd></dl>
</li>
</ul>
<a name="write(java.io.OutputStream, java.lang.Object)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>write</h4>
<pre>public static&nbsp;boolean&nbsp;write(java.io.OutputStream&nbsp;stream,
            java.lang.Object&nbsp;o)
                     throws java.lang.Exception</pre>
<div class="block">writes the XML-serialized object to a stream</div>
<dl><dt><span class="strong">Param