|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectnet.java.sen.StreamTagger
public class StreamTagger
Tokenizes text read from a java.io.Reader
See examples.StreamTaggerDemo in the Sen source for an example of how to use this class
Thread Safety: Objects of this class are NOT thread safe and
should not be accessed simultaneously by multiple threads. Note that creating
additional instances using SenFactory is relatively cheap in both
memory and time
| コンストラクタの概要 | |
|---|---|
StreamTagger(StringTagger stringTagger,
java.io.Reader reader)
|
|
| メソッドの概要 | |
|---|---|
void |
addFilter(StreamFilter filter)
Adds a StreamFilter |
boolean |
hasNext()
Tests if more Tokens are available |
Token |
next()
Returns the next available token |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public StreamTagger(StringTagger stringTagger,
java.io.Reader reader)
stringTagger - The StringTagger to use to tokenise the read textreader - The Reader to read text from| メソッドの詳細 |
|---|
public boolean hasNext()
throws java.io.IOException
Tokens are available
true if more Tokens are available, otherwise
false
java.io.IOException
public Token next()
throws java.io.IOException
java.io.IOExceptionpublic void addFilter(StreamFilter filter)
StreamFilter
filter - The StreamFilter to add
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||