How to calculate size of output from HTTPServletResponse

how to calculate size (in bytes) of the output from HttpServletResponse.can anyone tell me....thanks in advance
[132 byte] By [chenfana] at [2007-11-27 8:42:26]
# 1
By reading the HTTP Content-Length header.Optionally, you can set the size yourself with setContentLength(...).
karma-9a at 2007-7-12 20:41:45 > top of Java-index,Java Essentials,Training...