readLine 
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.   

    namowen(寒号不已) 已经说清楚了
    就是用BufferedReader代替DataInputStream
      

  2.   

    DataInputStream类将读取字节信息,,用reader类或者其派生类可将字节信息按照一定的编码转换成字符信息,如果是字符传输,就用reader/writer类的派生类,比如BufferedReader/BufferedWriter
      

  3.   

    转换成BYTE类型也就可以了但不是个好办法
    还是用READER吧??