Package org.nuxeo.ecm.core.blob
Class BlobStoreBlobProvider.AutoDeleteFileInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FileInputStream
-
- org.nuxeo.ecm.core.blob.BlobStoreBlobProvider.AutoDeleteFileInputStream
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Enclosing class:
- BlobStoreBlobProvider
public static class BlobStoreBlobProvider.AutoDeleteFileInputStream extends FileInputStream
AFileInputStream
that deletes its underlying file when it is closed.
-
-
Constructor Summary
Constructors Constructor Description AutoDeleteFileInputStream(Path 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
-
-
-
-
Field Detail
-
file
protected Path file
-
-
Constructor Detail
-
AutoDeleteFileInputStream
public AutoDeleteFileInputStream(Path file) throws IOException
- Throws:
IOException
-
-
Method Detail
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classFileInputStream
- Throws:
IOException
-
-