因为readLine方法在类DataInputStream中已经是:Deprecated的方法了.不再推荐使用了.
所以给你警告.
看看文档:
public final String readLine()
                      throws IOException    Deprecated. This method does not properly convert bytes to characters. As of JDK 1.1, the preferred way to read lines of text is via the BufferedReader.readLine() method. Programs that use the DataInputStream class to read lines can be converted to use the BufferedReader class by replacing code of the form:     DataInputStream d = new DataInputStream(in);
     with:     BufferedReader d
          = new BufferedReader(new InputStreamReader(in));
     See the general contract of the readLine method of DataInput.Bytes for this operation are read from the contained input stream.

解决方案 »

  1.   

    Deprecated. 
    This method does not properly convert bytes to characters. As of JDK 1.1, the preferred way to read lines of text is via the BufferedReader.readLine() method. Programs that use the DataInputStream class to read lines can be converted to use the BufferedReader class by replacing code of the form: 
         DataInputStream d = new DataInputStream(in);
     
    with: 
         BufferedReader d
              = new BufferedReader(new InputStreamReader(in));
     
      

  2.   

    我看过他的运用我可告诉你
    你应该知道DataInputStream()  没有readline()的方法
    除非你写的java