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
An implementation of FileInputStream that ignores any exceptions on close().
- Since:
- 5.0
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.FileInputStream
available, getChannel, getFD, read, read, read, readAllBytes, readNBytes, skip
Methods inherited from class java.io.InputStream
mark, markSupported, nullInputStream, readNBytes, reset, skipNBytes, transferTo
-
Constructor Details
-
SilentFileInputStream
- Parameters:
file
- the file- Throws:
FileNotFoundException
- the file was not found
-
-
Method Details
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classFileInputStream
-