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:48:22]
# 1
> how to calculate size (in bytes) of the output from> HttpServletResponse.> can anyone tell me....1) Read the bytes from the servlet output stream and count them.2) Determine the content to be sent in the response and count the bytes.~
yawmarka at 2007-7-12 20:55:12 > top of Java-index,Java Essentials,Java Programming...
# 2
can you show me sample code that describe your explanation?thanks
chenfana at 2007-7-12 20:55:12 > top of Java-index,Java Essentials,Java Programming...
# 3
> can you show me sample code that describe your explanation?Can you describe what it is about my response that you found confusing?~
yawmarka at 2007-7-12 20:55:12 > top of Java-index,Java Essentials,Java Programming...