Re: Servlet input/output streams

2011-06-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ronald, On 6/22/2011 11:23 AM, Ronald Albury wrote: > My understanding is that I should *not* close the servlet input/output > streams (if you don't open them - you shouldn't close them) That seems like good advice. > But what if I have wrapped thos

Re: Servlet input/output streams

2011-06-22 Thread Rehtron
Hi You may use decorator pattern to decorate the input & output stream from Servlet to a UnclosableInputStream & UnclosableOutputStream, public class UnclosableInputStream extends java.io.FilterInputStream { public UnclosableInputStream(InputStream inputStream) { super(inputStream); } @Override