File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes DataInputStream Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "DataInputStream" Watch "DataInputStream" New topic


Nelson Nadal
Ranch Hand

Joined: Jun 06, 2002
Posts: 169
Since the readLine() of DataInputStream is deprecated, what is my alternative to read the writeChars() of DataOutputStream? (aside from using BufferedReader)?
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
And why don't you want to use BufferedReader?

Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Nelson Nadal
Ranch Hand

Joined: Jun 06, 2002
Posts: 169
I have this part of code...

this runs with -deprecated sign...
Now it when I use BufferedReader it returns garbage chars...
I agree. Here's the link:
subject: DataInputStream