Hi,
i try to implement an XML protocol (SOAP like)
using asynchronous I/O (using java.nio.Buffer).
I've a little problem because, i receive a
buffer (a fragment of the document) and i
want to parse it.
If i use next() method, i recieved an exception
at the end of the buffer.
I've two solutions to workaround, first, catch the
exception, poor performance, second solution, use
a wait/notify mecanism, but must create a thread, etc...
not an asynchronous solution anymore.
I think that add a method hasNext() could resolve
my problem.
What do you think about that ??
Remi