BufferedWriter bufferedWriter = new BufferedWriter(new OutputStreamWriter(socket.getOutputStream()));
bufferedWriter .write()
bufferedWriter .newline()
bufferedWriter .flush()
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStream));
转换为字符流就可以输出整个字符串 而不需要一个字节一个字节的输出