Results 1 to 3 of 3
- 10-21-2011, 01:31 PM #1
Member
- Join Date
- Mar 2011
- Posts
- 23
- Rep Power
- 0
InputStream and BufferedInputStream
Hi,
I was trying to implement a simple java program to read the contents of a file using BufferedReader. Thats when I happened to come across an example where FileInputStream and BufferedInputStream was used to read the file. What is the difference between the two???
Regards
Dalu
- 10-21-2011, 02:03 PM #2
Member
- Join Date
- Oct 2011
- Posts
- 5
- Rep Power
- 0
Re: InputStream and BufferedInputStream
Try this: Buffering with Java input streams
- 10-21-2011, 02:29 PM #3
Member
- Join Date
- Oct 2011
- Posts
- 15
- Rep Power
- 0
Re: InputStream and BufferedInputStream
The BufferedInputStream actually does the reading but it needs a stream specified. The InputStream is used in order to do that (in establishes a connection to the text file).
Check this to see some examples:
Dystopian Code: Text File I/O in Java
Dystopian Code: Text File I/O with Strings that Contain Spaces in Java
Similar Threads
-
BufferedInputStream
By prinnori in forum New To JavaReplies: 5Last Post: 08-30-2011, 12:58 PM -
Creating an InputStream
By c26354 in forum New To JavaReplies: 10Last Post: 07-12-2011, 04:48 AM -
InputStream problem
By javabarn in forum New To JavaReplies: 10Last Post: 06-29-2010, 04:09 PM -
BufferedInputStream with Huffman Compression
By Msnforum in forum New To JavaReplies: 0Last Post: 11-03-2009, 09:04 PM -
Help with BufferedInputstream and/or DataInputStream
By barney in forum New To JavaReplies: 1Last Post: 08-07-2007, 07:16 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks