acle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or 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 space