classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New IO Native Provider Interface


From: Aaron M. Renn
Subject: Re: New IO Native Provider Interface
Date: Wed, 5 Mar 2003 15:41:14 -0600
User-agent: Mutt/1.4i

Jeroen Frijters (address@hidden) wrote:
> Great job, this is almost exactly like I envisioned it. A few minor
> suggestions:

Thanks.
 
> - FileOutputStream should not request read access, so the modes should
> be "w" and "a"

Good observation.  Have you actually tested the JDK to see what it
does in this situation?  Is the file actually opened "write only"?

> - write(byte[] buf, long offset, long length) should not use longs for
> offset and length

I take it that you are referring to the Java write() method I added to the
FileDescriptor class and not the nativeWriteBuf() method.  I'm ok with
modifying this.  I do typically want to use longs for native calls.

> - nativeReadByte shouldn't return a long

Why not?  All of the rest of the native methods that return values
return longs.

> - I don't think available() should return negative numbers

Does it?  I certainly didn't intend for it to.

Thanks for the feedback.
 
-- 
Aaron M. Renn (address@hidden) http://www.urbanophile.com/arenn/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]