OK. That makes sense. Could you please regenerate the patch against the 20_branch and the head and I'll commit it?
Thanks, J. > -----Original Message----- > From: Joerg Henne [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, 30 October 2001 3:20 pm > To: [EMAIL PROTECTED] > Subject: Re: [C2] patch to serializers > > > John, > > "Morrison, John" wrote: > > > > Joerg, > > > > I looked at the patch you supplied. In the comments below > you say... > > > > "The buffer created in AbstractSerializer was actually never used, > > because all subclasses of AbstractSerializer either didn't use > > super.setOutputStream()" > > > > but if you look, all the files you've patched have... > > > > super.setOutputStream(out); > > > > Am I missing something? > > ok, let's take e.g. the HTMLSerializer: > > - the HTMLSerializer's setOutputStream method immediately calls > super.setOutputStream(out) which is > - the AbstractTextSerializer's implementation, which in turn > will wrap the > output stream into a BufferedOutputStream and call > super.setOutputStream() > with the buffered stream. > - Finally AbstractSerializer's setOutputStream method will > simply set the > field this.output. > - The field this.output will then subsequently be used by the > HTMLSerializer > to create a StreamResult. > > Now, if you look at revision 1.4 of the HTMLSerializer, you > can see that > super.setOutputStream was called, but the variable used to create the > StreamResult was the method parameter. As a result, any > intervention of the > superclasses on the stream was in vain. > > Joerg Henne > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] > ======================================================================= Information in this email and any attachments are confidential, and may not be copied or used by anyone other than the addressee, nor disclosed to any third party without our permission. There is no intention to create any legally binding contract or other commitment through the use of this email. Experian Limited (registration number 653331). Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]