|
> I haven't done any programming in 3 years but according to sun's java API spec > (http://java.sun.com/j2se/1.4.2/docs/api/), in the DataInputStream class > description > (http://java.sun.com/j2se/1.4.2/docs/api/java/io/DataInputStream.html) : > > String readLine() > 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)); > > voilą (?) >
When twilight dims the skies above Recalling thrills of our love There's one thing I'm certain of Return... I will... to old... BRAZIL.
|