This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: what's the point of java.nio?
- From: Adam Megacz <megacz at gcc dot gnu dot org>
- To: java at gcc dot gnu dot org
- Date: Sun, 30 May 2004 19:51:16 -0700
- Subject: Re: what's the point of java.nio?
- Organization: Myself
- References: <m1u0xx71ka.fsf@nowhere.com>
Oh yeah, and CharSequence, which I admit is a really, really good idea.
- a
Adam Megacz <adam@megacz.com> writes:
> Er, I must be a dunce or something. I've read through all the nio
> introductions I can find, and I still can't figure out why Sun
> introduced an entire package instead of two methods:
>
> static InputStream InputStream.select(InputStream[])
> static boolean Socket.nonBlockingConnect()
>
> It looks like given these two functions I could implement all of
> java.nio on top of java.io. And the converse (io on nio) is certainly
> true (libgcj does it).
>
> So the only conclusion I'm left with is that it's somehow easier to
> implement the native method support for nio more efficiently, but I
> can't see how that is the case.
>
> Can anybody clue me in?
>
> - a
>
> --
> "The first time I read this book I felt what I could only explain as a
> great disturbance in the Force: it was as if a billion washing
> machinces all became unbalanced at once and were suddenly silenced."
>
> -- anonymous book reviewer on Amazon.com
>
--
"The first time I read this book I felt what I could only explain as a
great disturbance in the Force: it was as if a billion washing
machinces all became unbalanced at once and were suddenly silenced."
-- anonymous book reviewer on Amazon.com