This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: RandomAccessFile.seek
- To: alk at pobox dot com
- Subject: Re: RandomAccessFile.seek
- From: Tom Tromey <tromey at redhat dot com>
- Date: 31 Jul 2001 16:23:00 -0600
- Cc: java-patches at gcc dot gnu dot org
- References: <15191.25749.906216.242688@spanky.love.edu>
- Reply-To: tromey at redhat dot com
>>>>> "Tony" == Tony Kimball <alk@pobox.com> writes:
Tony> RandomAccessFile.seek should be able to extend files, instead of
Tony> throwing EOFException, to be like JDK 1.3. This patch moves the
Tony> check on FileDescriptor.seek up into FileInputStream, so that it
Tony> does not occur when RandomAccessFile.seek calls
Tony> FileDescriptor.seek.
I finally looked at this.
I think we need to do more here. For instance, the other
natFileDescriptor* files need to be updated.
Also RandomAccessFile.skipBytes needs to be updated.
What if we change FileDescriptor.seek to take a boolean argument which
tells it what to do?
Tom