Esempio n. 1
1
 /**
  * Releases any system resources associated with this stream by calling the <code>close()</code>
  * method.
  */
 protected void finalize() throws Throwable {
   super.finalize();
   close();
 }
Esempio n. 2
1
 /* (non-Javadoc)
  * @see java.lang.Object#finalize()
  */
 @Override
 protected void finalize() throws Throwable {
   // Do not close the source because we might want to reuse it.
   super.finalize();
 }