X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=TD2%2FClientSimplifie.java;h=c5eb31ac41bc918aab04ee5380d3132a7c2feb7b;hb=367e2930690ae79b8a9bbb641953fcb43f3854dd;hp=35f389dccfa6399625c942171a7b306ecd951835;hpb=f734b9878de62b987da4922fa796a691d16680ce;p=TD_SR.git diff --git a/TD2/ClientSimplifie.java b/TD2/ClientSimplifie.java index 35f389d..c5eb31a 100644 --- a/TD2/ClientSimplifie.java +++ b/TD2/ClientSimplifie.java @@ -30,7 +30,8 @@ public class ClientSimplifie { InputStream IStream = null; try { IStream = sock.getInputStream(); - } catch (IOException e) {} + } + catch (IOException e) {} InputStreamReader IMesg = new InputStreamReader(IStream); lecture = new BufferedReader(IMesg); @@ -53,16 +54,16 @@ public class ClientSimplifie { //FIXME: read only the line before the ending newline line = lecture.readLine(); } - catch (IOException e) {} + catch (IOException e) {} return line; } public void closeRWIO() { ecriture.close(); - try { - lecture.close(); - } - catch (IOException e) {} + try { + lecture.close(); + } + catch (IOException e) {} } } // fin classe ClientSimplifie