• Post Reply Bookmark Topic Watch Topic
  • New Topic

datainputstream and bufferedreader  RSS feed

 
Ranadhir Nag
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am little confused about the new I/O streams.
The Datainputstream has been notified to be deprecated (as it not handle the byte to character conversion properly - as told).
Then what is the InputStream child to be used for byte(non-character) data?
Also BufferedReader has been advised to be used for Datainputstream - But i believe thats for string data only.Is that correct?
What happens to the rest?
Where does BufferedInputStream come within all this?
 
James Sabre
Ranch Hand
Posts: 781
Java Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Only method DataInputStream.readLine() has been deprecated, not the whole class. Check the Javadoc.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!