Online Programz

Daily Archives : October 6th, 2009

Input And Output Streaming

Stream:

A stream is a an abstraction that either produces or consumes information. A stream is linked to a physical device by the java I/O stream.

Types Of Stream:

  • Byte Stream
  • Character Stream

Byte Stream :

  • Handles input and output of bytes.
  • Classes: Input Stream and Output Stream (important classes)
  • Methods: read(), write() (important methods)

Character Stream:

  • Handles input and output of characters
  • Classes: Reader and Writer (important classes)
  • Methods: read() and write() (important methods)