Package org.nuxeo.ecm.core.api
Class CloseableFile
java.lang.Object
org.nuxeo.ecm.core.api.CloseableFile
- All Implemented Interfaces:
Closeable
,AutoCloseable
A wrapper for a
File
, which must be closed when done with it in order to release resources.- Since:
- 7.2
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
file
-
deleteOnClose
public final boolean deleteOnClose
-
-
Constructor Details
-
CloseableFile
-
-
Method Details
-
getFile
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-