Byte Stream Class - Character Stream Class
Byte Stream Class - Character Stream Class
1.InputStream
2.OutputStream
1. The InputStream class provides methods to read
bytes from a file, console or memory. The subclasses
of InputStream class are given in the following table.
1. BufferedInputStream
INPUT This class provides
methods to read bytes
STREAM from the buffer.
CLASS
2. BytearrayInputstream This class provides methods to
read bytes from the byte
array.
3. Datainputstream This class provides methods to read Java primitive
data types.
Character • The CharacterStream classes are divided into two types of classes
Reader Class
• Reader class is used to read the 16-bit characters from the input stream.
Writer Class