Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Relation between InputStream and InputSreamReader  RSS feed

 
saikrishna cinux
Ranch Hand
Posts: 689
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
IS there any relation between BufferedInputStreamReader and BufferedReader

Where these 2 applied in real time environment


thanx
cinux
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java I/O is a bit daunting at first. This should help you make sense of it...

Thinking in Java, Chapter 12: The Java I/O System by Bruce Eckel.
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Note that there is no class BufferedInputStreamReader in the standard Java libraries. Perhaps you're thinking of one of these:

BufferedInputStream
BufferedReader
InputStreamReader

These are discussed in the link Marc gave. If you're really dealing with a class called BufferedInputStreamReader, then it's not a standard class, and we can't really help with what it does without knowing more about where it came from.
 
saikrishna cinux
Ranch Hand
Posts: 689
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok tell me what is the difference between InputStream and a Reader


I am sorry for BufferedInputStreamReader coz it's not there in java api


cinux
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 15861
81
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In Java I/O, streams (InputStream and OutputStream) are for reading and writing binary data. Readers and Writers are for reading and writing text - Readers and Writers include the necessary logic to convert binary data from and to text (using character encodings etc.).

InputStreamReader is a class that wraps an InputStream into a Reader, so that you can read text from an InputStream.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!