[菜鸟求指导]怎样把dataIputStream直接赋给dataOutputStream呢
RT想把socket获取的dataIputStream直接再通过dataOutputStream发出去
求指到 --------------------编程问答--------------------
BufferedReader is = new BufferedReader(new InputStreamReader(--------------------编程问答-------------------- 还想请教下有没有好的办法打印出dataIputStream数据流信息 --------------------编程问答--------------------
socket.getInputStream()));
// 由Socket对象得到输出流,并构造PrintWriter对象
PrintWriter os = new PrintWriter(socket.getOutputStream());
String str = is.readLine();
os.println(str);
os.flush();
system.out.pintln不行么??
补充:移动开发 , Android