Class SilentFileInputStream

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

    public class SilentFileInputStream
    extends java.io.FileInputStream
    An implementation of FileInputStream that ignores any exceptions on close().
    Since:
    5.0
    • 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

      • SilentFileInputStream

        public SilentFileInputStream​(java.io.File file)
                              throws java.io.FileNotFoundException
        Parameters:
        file - the file
        Throws:
        java.io.FileNotFoundException - the file was not found
    • Method Detail

      • close

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