Java怎么清楚緩沖數據
Socket client =new Socket( "10.242.10.75 ",4660);
BufferedReader in=new BufferedReader(new InputStreamReader(client.getInputStream()));
while(true)
{
readMess=in.readLine().trim();
}
怎么過一段時間要清除一次緩沖數據怎么做?
------解决方案--------------------没做过,up
------解决方案--------------------flush()
close()
------解决方案--------------------自己看书啊