[jdom-interest] XMLOutputter in b6; OutputStream.flush() not working?

Dug Birdzell dbirdzell at mmtmail.com
Mon Apr 16 10:33:38 PDT 2001


Hi..

In b6 (and b5) I've noticed that XMLOutputter(Document,OutputStream)
does
not flush the output stream, which has been discussed previously on this
list.

What I've also noticed is that calling flush() on the stream does not
always flush the bytes.  Writing "\n\n" or "\r\n" to the output stream
seems to consistently force the bytes through to where I can inspect
them on the client.  FWIW, I am using a DataOutputStream as my
OutputStream, and writing using writeBytes().

I have downloaded the latest snapshot release and the problem seems to
have gone away; so I won't go into a discussion of sample code at this
time.  I am just curious if anyone else has similar experiences which
they would like to share.  

Thanks!

--Dug

--------------------------------
Dug Birdzell 
dbirdzell at mmtmail.com

MasterMind Technologies, Inc.
1054 31st Street, NW, Suite 314
Washington, DC  20007-4403  USA
Tel. 202-298-8500, ext. 527
Fax. 202-298-8501
www.mastermindtechnologies.com
--------------------------------



More information about the jdom-interest mailing list