A ServletOutputStream is intended for direct output without Unicode character translation so it should be faster than a PrintWriter. I got a neat book "Java Performance and Scalability - Server-side Programming Techniques" by Bulka - Addison Wesley in which he does some time tests - the PrintWriter approach is distinctly slower. Bill
posted 17 years ago
Thanks for that. Saves me the time of having to do my own tests.
---<br />Co-author of "Hibernate Quickly"<br /><a href="http://www.manning.com/books/peak" target="_blank" rel="nofollow">http://www.manning.com/books/peak</a>