edu.buffalo.nsf.xmlcqa.data.stream
Interface TokenStream

All Known Implementing Classes:
StAXTokenStream

public interface TokenStream

Class representing a stream of tokens. Any impelementation of this interface should assure that the stream of tokens is balanced.

Author:
staworko

Method Summary
 boolean hasNext()
          Returns true if a given stream has more tokens to read.
 Token next()
          Returns next available token.
 

Method Detail

hasNext

public boolean hasNext()
Returns true if a given stream has more tokens to read.


next

public Token next()
Returns next available token. Moves cursor forward.