[jdom-interest] determining output length

Jason Winnebeck gillius-ml at gillius.org
Fri Mar 3 05:08:17 PST 2006


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@yourhost.com



More information about the jdom-interest mailing list