Java 类org.apache.lucene.analysis.CharacterUtils 实例源码

项目:resource-query-parser    文件:MockLowerCaseFilter.java   
@Override
public final boolean incrementToken() throws IOException {
    if (input.incrementToken()) {
        CharacterUtils.toLowerCase(termAtt.buffer(), 0, termAtt.length());
        return true;
    } else
        return false;
}
项目:elasticsearch-analysis-lc-pinyin    文件:CharBufferReader.java   
public CharBufferReader(Reader input, int bufferSize) {
    this.input = input;
    this.bufferSize = bufferSize;
    charBuffer = CharacterUtils.newCharacterBuffer(bufferSize);
}
项目:elasticsearch-analysis-lc-pinyin    文件:CharBufferReader.java   
private boolean readToBuffer() throws IOException {
    CharacterUtils.fill(charBuffer, input);
    readCursor = charBuffer.getOffset();
    return charBuffer.getLength() > charBuffer.getOffset();
}
项目:elasticsearch-analysis-lc-pinyin    文件:CharBufferReader.java   
public void reset(Reader input) {
    this.input = input;
    readCursor = 0;
    charBuffer = CharacterUtils.newCharacterBuffer(bufferSize);
}