1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
public void createSocket(String str) { try { os = socket.getOutputStream(); osw = new OutputStreamWriter(os); } catch (IOException e) { } try { osw.write(str, 0, str.length()); osw.flush(); } catch (IOException e) { } } |