K
kvnsmnsn
I'm a grad student at BYU who needs to write a hash table to disk
at times and at other times read it back from disk. My advisor thinks
that the <nio> package might help me with that. Class <FileChannel>
of that package looks promising; in fact it looks like its
<read( ByteBuffer dst, long position)> and
<write( ByteBuffer src, long position)> methods are precisely what I
need. But they're both declared <abstract>, which means I have to
write a class that extends <FileChannel> and actually implements those
two methods, doesn't it?
I couldn't see any classes listed as extensions of <FileChannel>
at the top of the API for that class. Does anybody out there know of
any extensions that I can use? Or failing that, how I can write my
own extension of <FileChannel>?
---Kevin Simonson
"You'll never get to heaven, or even to LA,
if you don't believe there's a way."
from _Why Not_
at times and at other times read it back from disk. My advisor thinks
that the <nio> package might help me with that. Class <FileChannel>
of that package looks promising; in fact it looks like its
<read( ByteBuffer dst, long position)> and
<write( ByteBuffer src, long position)> methods are precisely what I
need. But they're both declared <abstract>, which means I have to
write a class that extends <FileChannel> and actually implements those
two methods, doesn't it?
I couldn't see any classes listed as extensions of <FileChannel>
at the top of the API for that class. Does anybody out there know of
any extensions that I can use? Or failing that, how I can write my
own extension of <FileChannel>?
---Kevin Simonson
"You'll never get to heaven, or even to LA,
if you don't believe there's a way."
from _Why Not_