net.java.sen
クラス StreamTagger

java.lang.Object
  上位を拡張 net.java.sen.StreamTagger

public class StreamTagger
extends java.lang.Object

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
 

コンストラクタの詳細

StreamTagger

public StreamTagger(StringTagger stringTagger,
                    java.io.Reader reader)
パラメータ:
stringTagger - The StringTagger to use to tokenise the read text
reader - The Reader to read text from
メソッドの詳細

hasNext

public boolean hasNext()
                throws java.io.IOException
Tests if more Tokens are available

戻り値:
true if more Tokens are available, otherwise false
例外:
java.io.IOException

next

public Token next()
           throws java.io.IOException
Returns the next available token

戻り値:
The next available token
例外:
java.io.IOException

addFilter

public void addFilter(StreamFilter filter)
Adds a StreamFilter

パラメータ:
filter - The StreamFilter to add


Copyright ? 2008. All Rights Reserved.