File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Elasticsearch in Action
this week in the
Java in General
diff. Bw streams
Joined: Dec 05, 2011
Dec 05, 2011 19:15:03
hi..i am new to java..i want the difference bw direct input stream and buffered reader..and where we can apply with real time examples..help me guys
Joined: Aug 11, 2007
Dec 05, 2011 19:20:15
I don't understand what you are asking. A
is buffered, and had additional methods that take advantage of the buffer.
What, exactly, do you mean by "real time" here?
Jesper de Jong
Joined: Aug 16, 2005
Dec 06, 2011 01:05:03
has two kinds of classes for I/O: streams and readers/writers.
and everything that extends these) are for reading and writing binary data: to read or write bytes from for example a file exactly as they are stored.
Readers and writers are a layer on top of streams, and these are for reading and writing text. Readers and writers convert from raw bytes to and from Unicode characters.
So, use streams when you need to read or write the bytes exactly as they appear in a file, and use readers and writers to read and write text files.
Java Beginners FAQ
JavaRanch SCJP FAQ
The Java Tutorial
Java SE 8 API documentation
Joined: Oct 13, 2005
Dec 06, 2011 08:48:14
And welcome to the Ranch
I agree. Here's the link:
subject: diff. Bw streams
Game development in java
Access HTML Form name programmatically from Servlet.
List.add() operation terminating program
parse( ) of DateFormat
passing information to next page
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015