List of utility methods to do Socket Write
void | writeOutputStream(Socket socket, StringBuffer sb) write Output Stream PrintWriter writer = getPrintWriterFromOutputStream(socket); writer.write(sb.toString()); writer.flush(); |
int | writeUTF(final Socket socket, final String out) write UTF if (out != null) { if (socket != null) { try { DataOutputStream dos = new DataOutputStream(socket.getOutputStream()); dos.writeUTF(out); dos.flush(); return 0; } catch (IOException e) { ... |