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

All Known Implementing Classes:
FileTokenSink

public interface TokenSink

Class representing device reading tokens. The close() method has to be used to inform the device that no further tokens will be consumed. It is the user responsibility to assure that the suplied stream of tokens is balanced.

Author:
staworko

Method Summary
 void close()
          Method closing the sink.
 void consume(Token t)
          Method consuming a token.
 

Method Detail

close

public void close()
Method closing the sink. After call to this method no other methods should be used.


consume

public void consume(Token t)
Method consuming a token.