Woah lolz… Who would do this with ByteBuffers? What I’d do is implement my own ByteBufferInputStream then, and let that one use java.nio buffer reading and use the java.io classes like BufferedReader to read things. But srsly… why would anyone do this with ByteBuffers, such a hard way?!?
Only on JGO will a newbie question like “How do you parse an integer?” turn into a discussion on NIO buffers, JSON serialization, new Java 7 features, binary data streams…
Well I’ve got Win7 64bit as well but Java7 hasn’t agreed with me the times I’ve tried it. There’s no compelling reason to make the switch yet. Efficiency is negligible unless it isn’t. And for most things it isn’t is, at least for me.
I don’t see the attraction with the b thingy that lets you play around with plain bits. Hex displays bits much better and is a lot more packed and concise. IMHO.