W3C home > Mailing lists > Public > www-jigsaw@w3.org > July to August 2000

Re: ContentLengthInputStream bug

From: Yves Lafon <ylafon@w3.org>
Date: Wed, 2 Aug 2000 13:48:42 +0200 (MET DST)
To: "Brooks, Thomas" <Thomas.Brooks@appnet.com>
cc: "'www-jigsaw@w3.org'" <www-jigsaw@w3.org>
Message-ID: <Pine.GSO.4.21.0008021343580.4864-100000@tarantula.inria.fr>
On Mon, 31 Jul 2000, Brooks, Thomas wrote:

> All,
> 
> I've been working on a filter and wanted to use the mark() and reset() calls
> on the input stream.  When I check if it's support via markSupported(), I
> get 'false.'  In actuality, mark() is supported and markSupported() should
> return 'true.'
> 
> The happens because ContentLengthInputStream extends InputStream, but can be
> constructed with any InputStream (sub)class.  When markSupported() is
> called, the method invoked is from the superclass, InputStream, returning
> 'false.'  ContentLengthInputStream should override the markSupported()
> method and call markSupported() on it's stream member.  Here's the proper
> code:

Added, thanks!
(the updated source is available on cvs)

      /\          - Yves Lafon - World Wide Web Consortium - 
  /\ /  \        Architecture Domain - Jigsaw Activity Leader
 /  \    \/\    
/    \   /  \   http://www.w3.org/People/Lafon - ylafon@w3.org    
Received on Wednesday, 2 August 2000 07:48:47 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 12:13:34 GMT