Submitted by heartin on Wed, 10/07/2015 - 08:34
Submitted by heartin on Thu, 03/06/2014 - 08:03
This is a quick reference of constructors for various Stream classes.
You can quickly find out what all type of resources or streams a Stream class can be attached with. For instance, a BufferedReader do not have a constructor that can accept an InputStream, however an InputStreamReader has such a constructor that can accept an InputStream. So to use an InputStream such as System.in, we can attach it to an InputStreamReader and then attach the InputStreamReader to a BufferedReader as: [node:read-more:link]
Submitted by heartin on Tue, 03/04/2014 - 10:10
A stream can be considered as a sequence of bytes travelling from a source to a destination.
All input and output data transfer in Java happens through streams.
There can be different types of sources and destinations such as disk files, input devices like keyboards and even other programs, and there are different stream classes available corresponding to each of these types of sources and destinations. [node:read-more:link]