aspose file tools*
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 Java 8 in Action this week in the Java 8 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
Similar Threads
regarding readLine()
sending an integer to a client machine
how to read int or any input value entered in console using DataInputStream??