• Post Reply Bookmark Topic Watch Topic
  • New Topic

BufferedReader and InputStream

 
Pawanpreet Singh
Ranch Hand
Posts: 264
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could anybody explain me that what is the difference between BufferedReader and InputStream.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The chief difference between streams and readers/writers is that streams work with raw bytes, while readers work with characters. In between the two there's a conversion happening where bytes are interpreted according to an encoding (like US-ASCII, UTF-8, CP-1252).
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!