Class TempFileInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- org.apache.jackrabbit.core.data.db.TempFileInputStream
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Direct Known Subclasses:
ResettableTempFileInputStream
public class TempFileInputStream extends FilterInputStream
An input stream from a temporary file. The file is deleted when the stream is closed or garbage collected.
-
-
Field Summary
-
Fields inherited from class java.io.FilterInputStream
in
-
-
Constructor Summary
Constructors Modifier Constructor Description TempFileInputStream(File file)
protected
TempFileInputStream(FileInputStream in, File file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
protected void
finalize()
-
Methods inherited from class java.io.FilterInputStream
available, mark, markSupported, read, read, read, reset, skip
-
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
-
-
-
-
Constructor Detail
-
TempFileInputStream
public TempFileInputStream(File file) throws FileNotFoundException
- Throws:
FileNotFoundException
-
TempFileInputStream
protected TempFileInputStream(FileInputStream in, File file)
-
-
Method Detail
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classFilterInputStream
- Throws:
IOException
-
-