@Override public void end() throws IOException { final int ofs = correctOffset(str.length()); offsetAtt.setOffset(ofs, ofs); }
termAtt.setTermBuffer(match); index = matcher.start(group); offsetAtt.setOffset(correctOffset(index), correctOffset(matcher.end(group))); return true; offsetAtt.setOffset(correctOffset(index), correctOffset(matcher.start())); index = matcher.end(); return true; offsetAtt.setOffset(correctOffset(index), correctOffset(str.length()));