Return-Path: Delivered-To: apmail-jakarta-lucene-dev-archive@www.apache.org Received: (qmail 56176 invoked from network); 20 Nov 2003 18:58:49 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 20 Nov 2003 18:58:49 -0000 Received: (qmail 91192 invoked by uid 500); 20 Nov 2003 18:58:38 -0000 Delivered-To: apmail-jakarta-lucene-dev-archive@jakarta.apache.org Received: (qmail 91164 invoked by uid 500); 20 Nov 2003 18:58:38 -0000 Mailing-List: contact lucene-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Lucene Developers List" Reply-To: "Lucene Developers List" Delivered-To: mailing list lucene-dev@jakarta.apache.org Received: (qmail 91151 invoked from network); 20 Nov 2003 18:58:37 -0000 Received: from unknown (HELO moutng.kundenserver.de) (212.227.126.188) by daedalus.apache.org with SMTP; 20 Nov 2003 18:58:37 -0000 Received: from [212.227.126.205] (helo=mrelayng.kundenserver.de) by moutng4.kundenserver.de with esmtp (Exim 3.35 #1) id 1AMu0n-00087S-00 for lucene-dev@jakarta.apache.org; Thu, 20 Nov 2003 19:58:41 +0100 Received: from [62.245.209.113] (helo=detego-software.de) by mrelayng.kundenserver.de with asmtp (TLSv1:RC4-MD5:128) (Exim 3.35 #1) id 1AMu0n-0004qz-00 for lucene-dev@jakarta.apache.org; Thu, 20 Nov 2003 19:58:41 +0100 Message-ID: <3FBD0FC8.9050000@detego-software.de> Date: Thu, 20 Nov 2003 20:02:32 +0100 From: Christoph Goller User-Agent: Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.4) Gecko/20030624 X-Accept-Language: de, en-us, en, de-at MIME-Version: 1.0 To: Lucene Developers List Subject: Re: CompoundFileReader References: <20031119201857.83953.qmail@web12704.mail.yahoo.com> In-Reply-To: <20031119201857.83953.qmail@web12704.mail.yahoo.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Otis Gospodnetic schrieb: > Hello Christoph, > > I don't know enough to judge all changes you made with confidence, and > don't have the code on this machine to apply the patch and look at it > properly. However, it looks like seekInternal(long) should now be left > with only the conditionals that can cause IOException, and nothing > else. Why do we need to keep the body of the method then? I discussed that already with Dmitry and he was not very passionate regarding these conditionals. Finally I kept them since they were required by Dmitry's test. But throwing an exception on seek is not a behavior implemented by the other subclasses of InputStream. I decided to remove the conditionals and slightly changed the unit test. If more index checks are desirable, I would put them into InputStream. Despite that I added a "read past EOF" check to CSInputStream.readInternal to guarantee the same behavior as FSInputStream. > > I also see getFilePointer() call, but can't tell where that method is. > I'll assume it's from the parent InputStream. yes. --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-dev-help@jakarta.apache.org