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));这个是1.4doc的说明,你应该试用Read的方法了