Class TempFileInputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class TempFileInputStream
    extends java.io.FileInputStream
    This extension to FileInputStream deletes the file passed to its constructor as the last operation in the close() method.
    See Also:
    FileInputStream
    • Constructor Summary

      Constructors 
      Constructor Description
      TempFileInputStream​(java.io.File tempTarget)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, transferTo
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TempFileInputStream

        public TempFileInputStream​(java.io.File tempTarget)
                            throws java.io.FileNotFoundException
        Throws:
        java.io.FileNotFoundException
    • Method Detail

      • close

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