Is it possible to peek the next nio.CharBuffer character without taking it out of the buffer like get()
would?
For blocking io, it seems PushbackReader` would suit, but I’m interested specifically in non-blocking.
Maybe there’s another built-in class with functionality similar to CharBuffer + the ability to peek, or a way to implement peeking on top of CharBuffer?