RandomAccessFile.seek
Tom Tromey
tromey@redhat.com
Tue Jul 31 14:54:00 GMT 2001
>>>>> "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
More information about the Java-patches
mailing list