I've been studying I/O recently, using the Sun tutorials mainly as my primary resoucre and I've come across I few syntactical issues that I don't quite understand and would appreciate any light at all you guys could shine on them.
BufferedReader inputStream = new BufferedReader(new FileReader("xanadu.txt"));
I realise in the above that a BufferedReader class is being declared and instantiated, with the argument being passed to it being a FileReader. This I believe is an example of chaining right? But I guess the big question I find myself asking is why isn't there a reference being made for the FileReader class? why just the instantiation by itself?
And secondly, am I right in thinking that the FileReader class is a high level stream? Which thus means it requires a low level one to even be operating. Where is this if this is the case - is it just assumed within Java?
Thanks for any help.