lmw
2024-06-16 03172fc2d9a7717f4a9d8de1c5eca3158a550b30
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package com.zxing.scanner.result;
 
import com.google.zxing.client.result.TextParsedResult;
 
/**
 * Created by hupei on 2016/8/12.
 */
public class TextResult extends Result {
    private final String text;
    private final String language;
 
    public TextResult(TextParsedResult textParsedResult) {
        this.text = textParsedResult.getText();
        this.language = textParsedResult.getLanguage();
    }
 
    public String getText() {
        return text;
    }
 
    public String getLanguage() {
        return language;
    }
}