Class 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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TokenListProvider

        public TokenListProvider​(java.util.Collection<Token> tokens)
    • Method Detail

      • getNext

        public Token getNext()
                      throws java.io.IOException
        Specified by:
        getNext in interface TokenProvider
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.lang.Exception
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.lang.Exception