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 Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "DataInputStream" Watch "DataInputStream" New topic


Nelson Nadal
Ranch Hand

Joined: Jun 06, 2002
Posts: 170
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: 170
I have this part of code...

this runs with -deprecated sign...
Now it when I use BufferedReader it returns garbage chars...
It is sorta covered in the JavaRanch Style Guide.
subject: DataInputStream