Example usage for org.apache.lucene.analysis.ja.tokenattributes ReadingAttribute getReading

List of usage examples for org.apache.lucene.analysis.ja.tokenattributes ReadingAttribute getReading

Introduction

In this page you can find the example usage for org.apache.lucene.analysis.ja.tokenattributes ReadingAttribute getReading.

Prototype

public String getReading();

Source Link

Usage

From source file:com.github.riccardove.easyjasub.lucene.LuceneParser.java

License:Apache License

private void readReading(TokenStream tokenStream, LuceneToken token) {
    ReadingAttribute reading = tokenStream.getAttribute(ReadingAttribute.class);
    if (reading != null) {
        token.setPronunciation(reading.getPronunciation());
        token.setReading(reading.getReading());
    }//from   w  ww . jav a  2s.co m
}