Use stderr where appropriate.
[TD_SR.git] / TD2 / ClientSimplifie.java
index fd3cd7c9162dc3937d1a397b1c1cf0489ffe819e..d247a9383cc852cc6094e63953740b1b9ec09ddf 100644 (file)
@@ -27,14 +27,14 @@ public class ClientSimplifie {
             sock = new Socket(adresseIPServeur, portServeur);
         }
         catch (IOException e) {
-            System.out.println("IOException: " + e);
+            System.err.println("IOException: " + e);
         }
         InputStream IStream = null;
         try {
             IStream = sock.getInputStream();
         }
         catch (IOException e) {
-            System.out.println("IOException: " + e);
+            System.err.println("IOException: " + e);
         }
         InputStreamReader IMesg = new InputStreamReader(IStream);
         lecture = new BufferedReader(IMesg);
@@ -44,7 +44,7 @@ public class ClientSimplifie {
             OStream = sock.getOutputStream();
         }
         catch (IOException e) {
-            System.out.println("IOException: " + e);
+            System.err.println("IOException: " + e);
         }
         ecriture = new PrintWriter(OStream);
     }
@@ -69,7 +69,7 @@ public class ClientSimplifie {
             line = lecture.readLine();
         }
         catch (IOException e) {
-            System.out.println("IOException: " + e);
+            System.err.println("IOException: " + e);
         }
         return line;
     }
@@ -83,7 +83,7 @@ public class ClientSimplifie {
             lecture.close();
         }
         catch (IOException e) {
-            System.out.println("IOException: " + e);
+            System.err.println("IOException: " + e);
         }
     }