Class DeleteTempFileOnCloseInputStream

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

    public class DeleteTempFileOnCloseInputStream
    extends java.io.FileInputStream
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      protected void finalize()  
      java.io.File getTempFile()  
      • Methods inherited from class java.io.FileInputStream

        available, 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

      • DeleteTempFileOnCloseInputStream

        public DeleteTempFileOnCloseInputStream​(java.io.File tempFile)
                                         throws java.io.FileNotFoundException
        Throws:
        java.io.FileNotFoundException
      • DeleteTempFileOnCloseInputStream

        public DeleteTempFileOnCloseInputStream​(File tempFile)
                                         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
      • finalize

        protected void finalize()
                         throws java.io.IOException
        Overrides:
        finalize in class java.io.FileInputStream
        Throws:
        java.io.IOException
      • getTempFile

        public java.io.File getTempFile()