hussam.io
Interface StringInputReader

All Known Implementing Classes:
Monitor

public interface StringInputReader

Author: Hussam Mohammad AlMulhim حسام محمد الملحم Version:1.5 StringInputReader describes a class that generates inputs as Strings. The implementation should make sure that requesting a String should quick. readString() should be called after requestingString() is invoked. If requesting/reading takes time, the implementation should make sure to have the the requestString() metho do the lengthy code in order for the readString to excute quickly. To put it in a nice way: first requestString() is called by a seperate thread. After you make sure that a String is available by some means, e.g. using wait() notify(), or listeners, or if you are sure that it does not require any time, read it by calling readString().

Author:
حسام الملحم Hussam Al-Mulhim

Method Summary
 java.lang.String readString()
          This reads the String.
 void requestString()
          This requests from the object implementing this interface a String.
 

Method Detail

requestString

void requestString()
This requests from the object implementing this interface a String. This should be called before calling the readString method.


readString

java.lang.String readString()
This reads the String. This should be called after calling requestString().