Docsity

Java IO Model and Streams: An Introduction to InputStream and Readers, Slides of Java Programming

Partial preview of the text

Download Java IO Model and Streams: An Introduction to InputStream and Readers and more Slides Java Programming in PDF only on Docsity!

ava - programming

An Introduction

Java Short Course Day-

J

Outlines

  • Java IO model
  • Streams
  • Readers

 Input Stream and Reader Classes  Output Stream and Writer Classes

  • File Classes

 File Streams

  • Package

 Java.io

Basic Streams

  • Byte Streams

 Support byte input and output (8 bit input output)  Termed as input or output streams  InputStream  BufferedInputStream  DataInputStream  FileInputStream  StringBufferInputStream

  • Character Streams

 Supports same methods but for characters (16 bit input output)  These streams are termed as reader and write  Reader  BufferedReader  FileReader  StringReader

InputStream

java.lang.Object java.io.InputStream

  • An abstract class
  • Base class for all input streams