dcsimg
what is the use and difference between inputstreams ,output streams ,data inputstreams data outputstreams ?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   vinoth_vinoth
Posted On:   Thursday, May 8, 2008 06:38 AM

Hi all,

what is the use and difference between inputstreams ,output streams ,data inputstreams data outputstreams ?

Re: what is the use and difference between inputstreams ,output streams ,data inputstreams data outputstreams ?

Posted By:   Stephen_McConnell  
Posted On:   Saturday, May 10, 2008 05:10 PM

For a good tutorial on the essentials of Java IO, here is the Sun On-line Java IO Tutorial. It will have a good discussion, but here goes:


In the early days of Java they decided that Data was basically going to be handled with Data Streams.... That is a stream of bytes... It would be up the the programmer to buffer these bytes as you read them or put them out....


Well, I'm going to tell you it sucked and was a pain in the ... well you know what... And it still is if you use the basic classes.


InputStream and OutputStream are basic abstract classes that handle Input and Output in Byte Streams. One then has concrete classes that implement the read functionality of the InputStream and the write functionality of the OutputStream class.


The tutorial has a better discussion AND code samples. Read it and you'll understand it better.


Stephen McConnell

About | Sitemap | Contact