|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
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().
| Method Summary | |
|---|---|
java.lang.String |
readString()
This reads the String. |
void |
requestString()
This requests from the object implementing this interface a String. |
| Method Detail |
|---|
void requestString()
java.lang.String readString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||