Exemplo n.º 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);
     }
   }
 }
Exemplo n.º 2
0
 /** Overridden to close the stream. */
 @Override
 protected void finalize() throws Throwable {
   finish();
   super.finalize();
 }
Exemplo n.º 3
0
 protected void finalize() throws Throwable {
   close();
   super.finalize();
 }
 @Override
 protected void finalize() throws Throwable {
   deleteTempFileIfExists();
   super.finalize();
 }