1 28 29 package com.caucho.vfs; 30 31 import java.io.IOException ; 32 33 public class TempFile { 34 private Path _file; 35 36 public TempFile(Path file) 37 { 38 _file = file; 39 } 40 41 public void remove() 42 { 43 Path file = _file; 44 _file = null; 45 46 try { 47 if (file != null) 48 file.remove(); 49 } catch (IOException e) { 50 } 51 } 52 53 public void finalize() 54 { 55 remove(); 56 } 57 } 58 | Popular Tags |