@Override public final boolean incrementToken() throws IOException { if (input.incrementToken()) { CharacterUtils.toLowerCase(termAtt.buffer(), 0, termAtt.length()); return true; } else return false; }
public CharBufferReader(Reader input, int bufferSize) { this.input = input; this.bufferSize = bufferSize; charBuffer = CharacterUtils.newCharacterBuffer(bufferSize); }
private boolean readToBuffer() throws IOException { CharacterUtils.fill(charBuffer, input); readCursor = charBuffer.getOffset(); return charBuffer.getLength() > charBuffer.getOffset(); }
public void reset(Reader input) { this.input = input; readCursor = 0; charBuffer = CharacterUtils.newCharacterBuffer(bufferSize); }