Rewinds this buffer. The position is set to zero and the mark is
discarded.
<p> Invoke this method before a sequence of channel-write or <i>get</i>
operations, assuming that the limit has already been set
appropriately. For example:
<blockquote><pre>
out.write(buf); // Write remaining data
buf.rewind(); // Rewind buffer
buf.get(array); // Copy data into array</pre></blockquote>
Rewinds this buffer. The position is set to zero and the mark is discarded.
<p> Invoke this method before a sequence of channel-write or <i>get</i> operations, assuming that the limit has already been set appropriately. For example:
<blockquote><pre> out.write(buf); // Write remaining data buf.rewind(); // Rewind buffer buf.get(array); // Copy data into array</pre></blockquote>
@return This buffer