If you’ve been following my lamenting over NIO and SSL then you can probably guess that I’ve made it to step 5 (acceptance). I had a moment of elation this morning when I found another one of those obscure NIO classes:
Channels does various conversions between traditional IO streams and NIO channels. In theory I could take
getInputStream() and get a
ReadableByteChannel. One problem:
ReadableByteChannel is not selectable. Oh well, back to the drawing board.
First grieveing and now momentary elation followed by good swift kick in the gut. Doesn’t Sun care about the unstable mental state all of this has left me in?!?
Side note: isn’t it annoying that there’s no interface that describes a selectable, readable / writeable channel? In other words, there’s no common way to describe a