din.readLine()过时吗
StringBuffer contentPage = new StringBuffer();
String nextLine = new String();
java.io.DataInputStream din = new DataInputStream(urlConn.getInputStream()); //从urlConn中取得流
while ((nextLine = din.readLine())!=null)
{
contentPage.append(nextLine+"\n");
}
din.close();
---------------
编译是说din.readLine()已经过时,
那该用什么方法在不过时呢