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.