-
Notifications
You must be signed in to change notification settings - Fork 0
Streams including default System streams not finished
In Java, 3 streams are created for us automatically. All these streams are attached with the console.
-
System.out: standard output stream
-
System.in: standard input stream
-
System.err: standard error stream
InputStream
public abstract class InputStream extends Object implements Closeable
This abstract class is the superclass of all classes representing an input stream of bytes.
Applications that need to define a subclass of InputStream must always provide a method that returns the next byte of input.
OutputStream class is an abstract class. It is the superclass of all classes representing an output stream of bytes. An output stream accepts output bytes and sends them to some sink.
OutputStream - used to write data to a destination; it may be a file, an array, peripheral device or socket.
Types of Streams
File IO Buffered IO Sequence ByteArray IO Data IO Filter IO Object Stream Object Stream Field