com.liferay.portal.kernel.io
Class AutoDeleteFileInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FileInputStream
          extended by com.liferay.portal.kernel.io.AutoDeleteFileInputStream
All Implemented Interfaces:
java.io.Closeable

public class AutoDeleteFileInputStream
extends java.io.FileInputStream

Author:
Shuyang Zhou

Constructor Summary
AutoDeleteFileInputStream(java.io.File file)
           
 
Method Summary
 void close()
           
 
Methods inherited from class java.io.FileInputStream
available, finalize, getChannel, getFD, read, read, read, skip
 
Methods inherited from class java.io.InputStream
mark, markSupported, reset
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutoDeleteFileInputStream

public AutoDeleteFileInputStream(java.io.File file)
                          throws java.io.FileNotFoundException
Throws:
java.io.FileNotFoundException
Method Detail

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.FileInputStream
Throws:
java.io.IOException