Package org.predict4all.nlp.parser
Class TokenListProvider
- java.lang.Object
-
- org.predict4all.nlp.parser.TokenListProvider
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,TokenProvider
public class TokenListProvider extends java.lang.Object implements TokenProvider
-
-
Constructor Summary
Constructors Constructor Description TokenListProvider(java.util.Collection<Token> tokens)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Token
getNext()
-
-
-
Constructor Detail
-
TokenListProvider
public TokenListProvider(java.util.Collection<Token> tokens)
-
-
Method Detail
-
getNext
public Token getNext() throws java.io.IOException
- Specified by:
getNext
in interfaceTokenProvider
- Throws:
java.io.IOException
-
close
public void close() throws java.lang.Exception
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Throws:
java.lang.Exception
-
-