Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

Re: Should I manually buffer my streams I get from the servlet-container?

Tim Funk

2006-12-15

Replies:

Do not perform your own buffering - its already done by the container.
The streams are not synchronized - but they don't need to be.

-Tim


Clemens Eisserer wrote:
> Hello,
>
> I wonder wether I should manually buffer the streams I get from
> HttpRequest/HttpResponse by wrapping it in an Buffered****Stream?
> Is does Tomcat (and whats about other servlet containers) take care
> about Buffereing?
>
> Furthermore are the streams provided by Tomcat synchronized?
>

---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.