|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.dmonix.io.ObjectInputStreamMonitor
The class that monitors an inputstream for incoming objects.
The class will create a thread that waits for incoming objects on
the monitored input stream.
For each incoming object an event is propagated to each registered listener.
Copyright: Copyright (c) 2003
Company: dmonix.org
| Constructor Summary | |
ObjectInputStreamMonitor(java.io.InputStream is,
int sleepTime)
|
|
| Method Summary | |
void |
addListener(ObjectInputStreamListener listener)
Adds a listener. |
void |
dispose()
Will stop the listener thread and dispose this object. |
void |
removeListener(ObjectInputStreamListener listener)
Removes a listener. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ObjectInputStreamMonitor(java.io.InputStream is,
int sleepTime)
throws java.io.IOException
| Method Detail |
public void addListener(ObjectInputStreamListener listener)
listener - the listenerpublic void removeListener(ObjectInputStreamListener listener)
listener - the listenerpublic void dispose()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||