SOCKET 输入输出流

        InputStream input = socket_.getInputStream();
	byte buffer[] = new byte[1024 * 4];
	int temp = 0;
	String info = "";
	while ((temp = input.read(buffer)) != -1) {
	  info = new String(buffer, 0, temp);
          //处理过程
          OutputStream os = socket_.getOutputStream();
	  Result resutl = Utils.sendRequest(strHead, urlString, bodyString);
	  os.write((resutl.headerCode+"\t"+resutl.result).getBytes());
	  os.flush();
        }


你可能感兴趣的:(socket,String,OS,buffer,input,byte)