Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DataInputStream

 
Nelson Nadal
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And why don't you want to use BufferedReader?
 
Nelson Nadal
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have this part of code...

this runs with -deprecated sign...
Now it when I use BufferedReader it returns garbage chars...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic