I'm thinking that the 1 is un-needed. <shrugs> I'm gonna try omitting the 1 from the declaration. Aside from that, I'm tapped for ideas. Any other thoughts on this would be helpful to anyone trying to use this code snippet in their own stuff.
the 1 IS irrelevant, since it's read from the passed buffers .remaining() method.
However, you really should be able to compile at all if you pass a 1, since it shouldn't be able to locate that method??