|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.sdedit.server.Receiver
public class Receiver
A Receiver receives a diagram specification through a TCP socket. The received code will be entered into the text area of some tab in the UserInterface.
| Constructor Summary | |
|---|---|
Receiver(Editor editor,
String tabTitle,
BufferedReader reader,
Socket socket)
Creates a new Receiver. |
|
| Method Summary | |
|---|---|
void |
run()
Calls readLine on the socket's reader, collects the received lines and notifies the waiter each time a new line has been received. |
void |
shutDown()
Closes the socket of this Receiver. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Receiver(Editor editor,
String tabTitle,
BufferedReader reader,
Socket socket)
editor - the control editortabTitle - the name of the title where the code that is received through
the socket is to be enteredreader - a reader for the socket's input stream, ready to readsocket - the socket| Method Detail |
|---|
public void shutDown()
public void run()
run in interface Runnable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||