Example #1
0
 @Override
 protected void finalize() throws IOException {
   try {
     close();
   } finally {
     try {
       super.finalize();
     } catch (Throwable t) {
       // for consistency with the RI, we must override Object.finalize() to
       // remove the 'throws Throwable' clause.
       throw new AssertionError(t);
     }
   }
 }
Example #2
0
 /** Overridden to close the stream. */
 @Override
 protected void finalize() throws Throwable {
   finish();
   super.finalize();
 }
Example #3
0
 protected void finalize() throws Throwable {
   close();
   super.finalize();
 }
 @Override
 protected void finalize() throws Throwable {
   deleteTempFileIfExists();
   super.finalize();
 }