diff options
author | Dor Bivas <dor1_b@walla.com> | 2013-12-01 13:55:29 +0200 |
---|---|---|
committer | Dor Bivas <dor1_b@walla.com> | 2013-12-01 13:55:29 +0200 |
commit | c7876de55daeb34fb7f997aedcd30ce2b36c400d (patch) | |
tree | d5b66abc9b6827553afcd6855f5883114b51edf4 /src/Client/ChatClientWriter.java | |
parent | ad5ae2ef8bc7a37050e79b20358334e6a52d6d68 (diff) |
Note all the project and task 1-4
Diffstat (limited to 'src/Client/ChatClientWriter.java')
-rw-r--r-- | src/Client/ChatClientWriter.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Client/ChatClientWriter.java b/src/Client/ChatClientWriter.java index 76ff03d..378008f 100644 --- a/src/Client/ChatClientWriter.java +++ b/src/Client/ChatClientWriter.java @@ -11,12 +11,16 @@ public class ChatClientWriter extends Thread public static Scanner reader = new Scanner(System.in);
+ /** constructor
+ * @param the socket and the client info */
public ChatClientWriter(Socket soc ,ChatClient client)
{
this.soc = soc;
this.client = client;
}
+ /** writing the line and making sure the package will be pushed on the stream
+ * @param the line and the client info */
public void println(String line)
{
try
@@ -29,6 +33,7 @@ public class ChatClientWriter extends Thread }
+ /** Running the object and translate the output from bytes to letters*/
public void run()
{
try
|