r interface in java.lang">String</a>&nbsp;finishAndReturn(int&nbsp;lastSegmentEnd,
                              boolean&nbsp;trimTrailingSpaces)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>lastSegmentEnd</code> - End offset in the currently active segment,
    could be 0 in the case of first character is
    delimiter or end-of-line</dd>
<dd><code>trimTrailingSpaces</code> - Whether trailing spaces should be trimmed or not</dd>
</dl>
</li>
</ul>
<a name="finishCurrentSegment--