What is the purpose of all these Streams?
From: Alligator (pandelis_at_postmaster.co.uk)
Date: 11/27/03
- Next message: Keld Hammerum: "program execution depends on java/javaw/debug"
- Previous message: nos: "Re: Object creation overhead"
- Next in thread: Anthony Borla: "Re: What is the purpose of all these Streams?"
- Reply: Anthony Borla: "Re: What is the purpose of all these Streams?"
- Reply: DaiIchi: "Re: What is the purpose of all these Streams?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 27 Nov 2003 00:42:29 -0800
And more specifically what is the difference between an InputStream
and a BufferedInputStream?
When should I use one and when should I use the other?
And why is there besides a BufferedInputStream also a Buffered Reader?
Should one use ?? :
InputStreamReader r = new InputStreamReader( blabla.getInputStream());
or
InputStreamReader r = new InputStreamReader( new BufferedInputStream(
blabla.getInputStream()));
or
BufferedReader br = new BufferedReader( new InputStreamReader(
blabla.getInputStream()) );
or
BufferedReader br = new BufferedReader( new InputStreamReader( new
BufferedInputStream( blabla.getInputStream())));
Does the BufferedInputStream offer some advantage over a simple
InputStream?
Any enlightment upon these subjects would be very welcome ...
- Next message: Keld Hammerum: "program execution depends on java/javaw/debug"
- Previous message: nos: "Re: Object creation overhead"
- Next in thread: Anthony Borla: "Re: What is the purpose of all these Streams?"
- Reply: Anthony Borla: "Re: What is the purpose of all these Streams?"
- Reply: DaiIchi: "Re: What is the purpose of all these Streams?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|