if (buffer != null && !buffer.isEmpty()) { CharsRef nextStem = buffer.remove(0); restoreState(savedState); posIncAtt.setPositionIncrement(0); termAtt.setEmpty().append(nextStem);
if (buffer != null && !buffer.isEmpty()) { CharsRef nextStem = buffer.remove(0); restoreState(savedState); posIncAtt.setPositionIncrement(0); termAtt.setEmpty().append(nextStem);
if (buffer != null && !buffer.isEmpty()) { Stem nextStem = buffer.remove(0); restoreState(savedState); posIncAtt.setPositionIncrement(0); termAtt.copyBuffer(nextStem.getStem(), 0, nextStem.getStemLength());