dev@grizzly.java.net

About BuffersBuffer#mark() and reset()

From: Bongjae Chang <bongjae.chang_at_gmail.com>
Date: Thu, 05 Jan 2012 23:00:07 +0900

Hi,

BuffersBuffer#mark() and BuffersBuffer#reset() throw currently
UnsupportedOperationException.

Could I know why they are not supported?

When I parsed packets, sometimes the input buffer of my filter could become
to be BuffersBuffer type if there was the remainder.

At that time, I got the exception if I used mark() and reset() methods.

So I stored the position of BuffersBuffer when I needed mark() and changed
current position into the stored position when I needed reset()
temporarily(It is the similar behavior to the HeapBuffer#mark() and
reset()).

If there were any issues about BuffersBuffer#mark() and reset(), I think
that I should also consider them again when I parses packets of
BuffersBuffer type.

So I would like to know the reason.

Thanks.

Regards,
Bongjae Chang