|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object opennlp.tools.tokenize.TokenizerStream
public class TokenizerStream
The TokenizerStream
uses a tokenizer to tokenize the
input string and output TokenSample
s.
Constructor Summary | |
---|---|
TokenizerStream(Tokenizer tokenizer,
ObjectStream<String> input)
|
Method Summary | |
---|---|
void |
close()
Closes the ObjectStream and releases all allocated
resources. |
TokenSample |
read()
Returns the next object. |
void |
reset()
Repositions the stream at the beginning and the previously seen object sequence will be repeated exactly. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TokenizerStream(Tokenizer tokenizer, ObjectStream<String> input)
Method Detail |
---|
public TokenSample read() throws IOException
ObjectStream
read
in interface ObjectStream<TokenSample>
IOException
public void close() throws IOException
ObjectStream
ObjectStream
and releases all allocated
resources. After close was called its not allowed to call
read or reset.
close
in interface ObjectStream<TokenSample>
IOException
public void reset() throws IOException, UnsupportedOperationException
ObjectStream
reset
in interface ObjectStream<TokenSample>
IOException
UnsupportedOperationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |