List of utility methods to do Socket Read
byte[] msgBytes = new byte[1024]; int read = s.getInputStream().read(msgBytes); return (read > 0 ? new String(msgBytes, 0, read) : "");