why is writer closed in marshal function?

"Mai Kai Zhen" <[email protected]> Thu, 02 Jan 2003 15:33:38 -0800
Newsgroups gmane.comp.java.enhydra.zeus
Message-ID <[email protected]>
Hi,=20
I was playing around with Zeus.  I had sevesal calls to marshal(System.ou=
t)=20
to dump the xml messages to screen.   Only the first xml message is dumpe=
d.=20
  It turned out that marshal(OutputStream outputStream) calls=20
marshal(Writer writer), which closes "writer" and causes the stream close=
d.=20
  I don't think marshal should close the passed-in writer or stream.  It=20
should be the responsibility of the caller to close writer or stream.

SimpleGenerator.writeImplementationMarshalMethods generates the=20
"writer.close()" code.

Kai



_________________________________________________________________
=D3=EB=C1=AA=BB=FA=B5=C4=C5=F3=D3=D1=BD=F8=D0=D0=BD=BB=C1=F7=A3=AC=C7=EB=CA=
=B9=D3=C3 MSN Messenger: http://messenger.msn.com/cn=20