Hey folks,
I just ran into this one: I wrote this http-server built with NIO to test the stability of my simply and convenient NIO wrapper 
I basically want to do everything in 1 thread (just for the sake of it). I never did much with FileChannel, as the performance barely differs from File[Input|Output]Stream in my case. I want to read files from multiple disks, from 1 thread, so blocking is really annoying as each disk has to wait for the other. So now that I finally want to use FileChannel, it seems to lack the non-blocking functionality that the [Server]SocketChannels have. FileChannel.read(ByteBuffer) never returns 0 (unless bytebuffer.remaining() == 0, but let’s ignore that…) so the darn thing blocks!
I can’t attach it to a Selector either (that would have been ideal).
What am I missing? :persecutioncomplex: