copyBuffer

Return a copy of any buffered data.

If a call to next was interrupted and parsing will not continue, this can be used to ensure any bytes which were already buffered are not lost.