org.codehaus.xfire.util
Class DeleteOnCloseFileInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FileInputStream
          extended by org.codehaus.xfire.util.DeleteOnCloseFileInputStream
All Implemented Interfaces:
java.io.Closeable

public class DeleteOnCloseFileInputStream
extends java.io.FileInputStream


Constructor Summary
DeleteOnCloseFileInputStream(java.io.File file)
           
 
Method Summary
 void close()
           
 boolean isDelete()
           
 void setDelete(boolean delete)
           
 
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

DeleteOnCloseFileInputStream

public DeleteOnCloseFileInputStream(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

isDelete

public boolean isDelete()

setDelete

public void setDelete(boolean delete)


Copyright © 2004-2010. All Rights Reserved.