From c7876de55daeb34fb7f997aedcd30ce2b36c400d Mon Sep 17 00:00:00 2001 From: Dor Bivas Date: Sun, 1 Dec 2013 13:55:29 +0200 Subject: Note all the project and task 1-4 --- src/Client/ChatClientWriter.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/Client/ChatClientWriter.java') 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 -- cgit v1.2.3