use of org.apache.jena.atlas.io.PeekReader in project jena by apache.
the class TokenizerFactory method makeTokenizer.
/** Safe use of a StringReader */
public static Tokenizer makeTokenizer(StringReader reader) {
PeekReader peekReader = PeekReader.make(reader);
Tokenizer tokenizer = new TokenizerText(peekReader);
return tokenizer;
}
use of org.apache.jena.atlas.io.PeekReader in project jena by apache.
the class TokenizerFactory method makeTokenizerString.
public static Tokenizer makeTokenizerString(String str) {
PeekReader peekReader = PeekReader.readString(str);
Tokenizer tokenizer = new TokenizerText(peekReader);
return tokenizer;
}
Aggregations