In these cases the first place to check is the documentation:

public void close ()

Since: API Level 1

Closes this reader. This implementation closes the buffered source
reader and releases the buffer. Nothing is done if this reader has
already been closed.

So closing the BufferedReader will close the underlying Reader it's wrapping..

kris

On Sat, Jan 7, 2012 at 3:13 AM, sl.laptop@maxis <[email protected]> wrote:
> Consider the following statement general:
>
>  inputStream = new BufferedReader(new FileReader("xanadu.txt"));
>
> Usual practice is at the end of use we execute the statement
> 'inputStream.close()'.
>
> Question: is it necessary to do 'FileReader.close()' ?
>
> Just curious, examples I have seen just 'inputStream.close()'.
>
> Thanks.
>
> --
> Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to