When a close method is called on a such a class, it automatically performs a flush. ... the use of abstract base class references try{ //use buffering InputStream file ...
www.javapractices.com