The buffer to copy data out of.
(Changed in version 2.8.0) collect has changed. The previous behavior can be reproduced with toSeq.
Tests whether this iterator can provide another element.
Tests whether this iterator can provide another element.
true if a subsequent call to next() will yield an
element, false otherwise.
The minimum number of bytes buffer must contain
in order for the fromBuffer() method to be called.
The next element for this iterator.
The next element for this iterator.
java.util.NoSuchElementException when the iterator is
depleted.
An abstract class to assist when Iterating over the contents of a ByteBuffer.
This class provides the
hasNextandnext()methods. Subclasses must implment thefromBuffer()method to process the data and return an object. ThefromBuffer()method is only called when the ByteBuffer has at least some minimum number of bytes available.