Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我怎么告诉
BufferedReader in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
遇到线路终端“\r\n”时停止读取缓冲区?
像这样的东西:
String strLine = null; //Read File Line By Line while ((strLine = in.readLine()) != null ) { if(strLine.contains("\r\n")){ break; } }// end while in.close(); ...