1 5 package com.teamkonzept.web; 6 7 import java.io.*; 8 9 12 public class TKReadOnceFileInputStream extends FileInputStream { 13 14 public File file; 15 16 public TKReadOnceFileInputStream( String filename ) 17 throws IOException 18 { 19 this( new File( filename ) ); 20 } 21 22 public TKReadOnceFileInputStream( File file ) 23 throws IOException 24 { 25 super( file ); 26 this.file = file; 27 } 28 29 public void close() 30 throws IOException 31 { 32 super.close(); 33 file.delete(); } 35 } 36 37 | Popular Tags |