Showing posts with label byte stream. Show all posts
Showing posts with label byte stream. Show all posts

Sunday, 26 January 2014

I/O Basics in java

i/o basics,streams,byte streams:character stream..


I/O Basics

 Java’s support for console I/O is limited and somewhat awkward to use—even in simple example programs. Text-based console I/O is just not very important to Java programming.g, Java does provide strong, flexible support for I/O as it relates to files and networks. Java’s I/O system is cohesive and consistent. In fact, once you understand its fundamentals, the rest of the I/O system is easy to master.


Streams


Java programs perform I/O through streams. Astream is an abstraction that either produces or consumes information. A stream is linked to a physical device by the Java I/O system.All streams behave in the same manner, even if the actual physical devices to which they are linked differ. Thus, the same I/O classes and methods can be applied to any type of device.