String str = currentPiece.substring(0, runEnd - currentTextStart);
finalTextBuf.append(str);
}
else
{
String str = currentPiece.substring(runStart - currentTextStart, runEnd - currentTextStart);
if (textIt.hasNext())
{
currentPiece = (TextPiece) textIt.next();
currentTextStart = currentPiece.getStart();
currentTextEnd = currentPiece.getEnd();