Package org.eclipse.jgit.util.io
Class SilentFileInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FileInputStream
-
- org.eclipse.jgit.util.io.SilentFileInputStream
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class SilentFileInputStream extends FileInputStream
An implementation of FileInputStream that ignores any exceptions on close().- Since:
- 5.0
-
-
Constructor Summary
Constructors Constructor Description SilentFileInputStream(File file)
-
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
-
-
-
-
Constructor Detail
-
SilentFileInputStream
public SilentFileInputStream(File file) throws FileNotFoundException
- Parameters:
file
- the file- Throws:
FileNotFoundException
- the file was not found
-
-
Method Detail
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classFileInputStream
-
-