Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@apache.org Received: (qmail 8495 invoked from network); 12 Nov 2002 20:04:27 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 12 Nov 2002 20:04:27 -0000 Received: (qmail 2911 invoked by uid 97); 12 Nov 2002 20:05:22 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-dev@jakarta.apache.org Received: (qmail 2878 invoked by uid 97); 12 Nov 2002 20:05:21 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 2853 invoked by uid 98); 12 Nov 2002 20:05:20 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Date: Tue, 12 Nov 2002 12:04:08 -0800 (PST) From: "Craig R. McClanahan" To: Tomcat Developers List Subject: Re: ServletOutputStreamWrapper In-Reply-To: <1037129901.2668.1.camel@kirstine.lombok.org.uk> Message-ID: <20021112120201.F89400-100000@icarus.apache.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: localhost 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On 12 Nov 2002, Paul Hunnisett wrote: > Date: 12 Nov 2002 19:38:18 +0000 > From: Paul Hunnisett > Reply-To: Tomcat Developers List > To: Tomcat Developers List > Subject: Re: ServletOutputStreamWrapper > > Thanks Dan, I'll try that. Basically what I'm trying to do is to write > my own subclasses of ServletOutputStream and ServletInputStream and I > need a little bit of inspiration - especially with the write(int) and > read() methods that I have to override. > In the "examples" webapp shipped with Tomcat, there's a compression filter that (among other things) creates a ServletResponseWrapper subclass and uses a specialized response stream implementation (extends ServletOutputStream). The sources are in the "/WEB-INF/classes/compressionFilters" subdirectory of the example webapp. Craig -- To unsubscribe, e-mail: For additional commands, e-mail: