Java Utililty Methods Socket Write

List of utility methods to do Socket Write

Description

The list of methods to do Socket Write are organized into topic(s).

Method

voidwriteOutputStream(Socket socket, StringBuffer sb)
write Output Stream
PrintWriter writer = getPrintWriterFromOutputStream(socket);
writer.write(sb.toString());
writer.flush();
intwriteUTF(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) {
...