如果远程读一个文件内容呢?我刚学JAVA,只能用以下代码
URL url;
         URLConnection conn;
         DataInputStream ins;
         String sss;
         String str = "";
         try{
               url = new URL(args[0]);
         }catch(MalformedURLException e1)
         {
                    System.out.println(e1+":");
                    return;
        }            try{
                    conn=url.openConnection();
                    ins=new DataInputStream(conn.getInputStream());
                    while(null!=(sss=ins.readLine()))
                    {
                         str += sss;          
                    }
                    ins.close();
            }catch(IOException e2)
                    {
                            System.out.println(e2+"");
                    }
但提示我readLine过时了。请问现在如何写呢