Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JDOM User »

Re: [jdom-interest] determining output length

Jason Winnebeck

2006-03-03

Replies:

I'm not sure if that is possible, but in the worst-case scenario, you
could write it to a memory buffer, then find the size of that buffer and
then send that buffer. XMLOutputter takes an OutputStream, and there
does exist ByteArrayOutputStream.

Jason

Noah Levitt wrote:
> How is a person supposed to determine the output length when writing
> out xml with XMLOutputter? This would be handy for setting content
> length header in http request or response.
>
> Noah
>
> _______________________________________________
> To control your jdom-interest membership:
> http://www.jdom.org/mailman/options/jdom-interest/youraddr@(protected)

_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/youraddr@(protected)
©2008 junlu.com - Jax Systems, LLC, U.S.A.