Class TempFileInputStream

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

    public class TempFileInputStream
    extends java.io.FileInputStream
    A simple extension to the normal FileInputStream to allow us to subvert a few things like close() for our own nefarious purposes.
    • Constructor Summary

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      java.io.File getTmpFile()  
      void setTmpFile​(java.io.File tmpFile)  
      • 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 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.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class java.io.FileInputStream
        Throws:
        java.io.IOException
      • getTmpFile

        public java.io.File getTmpFile()
      • setTmpFile

        public void setTmpFile​(java.io.File tmpFile)