Entry tags:
NIO again
Earlier this year I was pleased to find NIO tutorials. I've just been going over them again with a view to doing non-blocking IO on a server app, and I'm not happy! The tutorials are fine, but NIO makes life hard when what you really want is to read lines of characters, not arbitrary numbers of bytes. Googling finds lots of people asking how to do read lines, and lots of snotty answers along the lines of "Why are you using NIO, stupid?"
Side issue: when people ask a question, however stupid you think it is, don't be an arsehole in your answer, or if that's too hard, just don't answer.
Several people suggest that you could feed the bytes read in NIO into plain old IO streams, but that's WORK (and opportunity for bugs).
Sigh.
As I know and understand plain old IO and threads, I'll probably go with that. Shame.
Side issue: when people ask a question, however stupid you think it is, don't be an arsehole in your answer, or if that's too hard, just don't answer.
Several people suggest that you could feed the bytes read in NIO into plain old IO streams, but that's WORK (and opportunity for bugs).
Sigh.
As I know and understand plain old IO and threads, I'll probably go with that. Shame.