赞
踩
BufferedWriter bufferedWriter = new BufferedWriter(new OutputStreamWriter(socket.getOutputStream()));
bufferedWriter .write()
bufferedWriter .newline()
bufferedWriter .flush()
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStream));
转换为字符流就可以输出整个字符串 而不需要一个字节一个字节的输出
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。